[HELP] Final Touches
#1

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

pawn Код:
forward Countdown();
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    SetTimer("Countdown",7000,0);
    GameTextForPlayer(playerid,"~g~Capturing CP Please Wait....", 7000, 1);
    return 1;
}
pawn Код:
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
pawn Код:
public OnPlayerDeath(playerid, killerid, reason){
    SendDeathMessage(killerid,playerid,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);
    SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
    return 1;
}
and the minigame

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    GivePlayerMoney(killerid, 20000);
    SetPlayerScore(killerid,GetPlayerScore(playerid)+5);
    SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
    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
Reply
#2

NVM...
Reply
#3

lmfao you on skype? if so skype me please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)