View Full Version : [HELP] Final Touches

08/10/2011, 12:25 AM
Hey :) if you have been reading my other [HELP] topics you will of noticed that i am building a filterscript. so currently i have everything in place apart from a few things and they are, i would like to find out how i display timers on screen for example,

also how would i start a new round ? for example the army have to take the terrorists CP but after 7seconds its meant to show message Army won! but it doesnt it doesnt do anything after 7secs in my timer i have done it all correctly i think here is the coding from top to bottom

forward Countdown();

public OnPlayerEnterCheckpoint(playerid)
GameTextForPlayer(playerid,"~g~Capturing CP Please Wait....", 7000, 1);
return 1;
public Countdown()
new playerid;
GameTextForAll("Army Have Won",1000,4);
GameTextForAll("Starting Next Round",1000,4);

Need to add the round end when i know how incase you are thinking why its just game text also is there a way i can completely split the FS from the gamemode? because at the moment i have 2 OnPlayerDeaths which make it so if someone dies in the main game the killer gets 35k instead of the normall 10k but in the minigame they get 20k and loose nothing on death where as on the main they loose 5k here is the code:

main gamemode
public OnPlayerDeath(playerid, killerid, reason){
SetPlayerWantedLevel(playerid, 0);
SetPlayerWantedLevel(killerid, 6);
GivePlayerMoney(killerid, 15000);
GivePlayerMoney(playerid, -5000);
SetPlayerColor(killerid, 0xD60000FF);
SetPlayerColor(playerid, 0xFFFFFFFF);
SetPlayerHealth(killerid, 100);
SetPlayerArmour(killerid, 100);
SetPlayerScore(killerid,GetPlayerScore(killerid)+1 );
return 1;

and the minigame

public OnPlayerDeath(playerid, killerid, reason)
GivePlayerMoney(killerid, 20000);
SetPlayerScore(killerid,GetPlayerScore(playerid)+5 );
return 1;

this makes them also loose -2 score on death and +6 score on kill, if you need anymore codes or want to see it in full then please reply and i will add it straight away, thanks :D

08/10/2011, 01:26 AM

08/10/2011, 01:29 AM
lmfao you on skype? if so skype me please :D