help a little
#1

public
OnPlayerEnterCheckpoint
(playerid)
{
if(gTeam[playerid] ==
TEAM_HUMAN) {
GameTextForPlayer
(playerid,"~r~ You have
cleared the
checkpoint.",6000,4);
SendClientMessageToAll
(PURPLE,"You have been
given 5000$");
SendClientMessageToAll
(PURPLE,"You have been
given Medical Attention.");
SetPlayerScore
(playerid, GetPlayerScore
(playerid) + 1);
SetPlayerHealth
(playerid, 100);
GivePlayerMoney
(playerid,5000);
}
if(gTeam[playerid] ==
TEAM_ZOMBIE) {
GameTextForPlayer
(playerid,"~g~ Fuck those
survivors.",6000,4);
}
return 1;
}

I m having bug that when i enter cp player gets money and health but when he comes out of cp and again get inside the same cp he will again get money and health. plz tell me how can i give one player only one time money and health. p.s :- i dont want to use disableplayercheckpoint command
Reply


Messages In This Thread
help a little - by Owen007 - 22.06.2016, 10:35
Re: help a little - by luke49 - 22.06.2016, 10:48
Re: help a little - by Owen007 - 22.06.2016, 10:53
Re: help a little - by MBilal - 22.06.2016, 11:03
Re: help a little - by Owen007 - 22.06.2016, 11:06
Re: help a little - by luke49 - 22.06.2016, 11:12

Forum Jump:


Users browsing this thread: 1 Guest(s)