SA-MP Forums Archive
i need help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: i need help (/showthread.php?tid=609595)



i need help - Dissonancy - 14.06.2016

i.need help for zombie server. I need a checkpoint system which comes after every 5min at diff places with an annoncement. There would be 10 checkpoints after that when the survivor cleared their last cp then there will be written survivors won. and the gamemode will start a new game again.

plz help urgent


Re: i need help - SyS - 14.06.2016

you cant ask someone to script in help section you should try yourself scripting instead of asking someone.Then you faced some problem or not getting idea to continue with the script post here.You should also put some effort too.


Re: i need help - Unte99 - 14.06.2016

Also learn to make a more descriptive title rather than "I need help".


Re: i need help - Dissonancy - 14.06.2016

please sir i have tried a lot but nothing work plz help me sir i m new to scripting only give me some clue i ill do at my own


Re: i need help - Dissonancy - 14.06.2016

new bool nCheck[ MAX_PLAYERS ] ;
public OnPlayerSpawn( playerid )
{
SetPlayerCheckpoint( playerid, 1982.6150 , -220.6680 , -0.2432 , 3.0 ) ;
onCheck [playerid ] = true;
return 1 ;
}
public OnPlayerEnterCheckpoint (playerid )
{
if( onCheck[ playerid ]) // if it's true
{
GivePlayerMoney ( playerid, 1000 ) ;
DisablePlayerCheckpoint ( playerid ) ;
onCheck [playerid ] = false;
}
return 1 ;
}

but i need not to end checkpoint instantly after someome enter it. I mean when someone end cp it will end after 2min