11.01.2014, 20:45
Hello, it seems that when I enter a dynamic CP(any one of them) code in the normal OnPlayerEnterCheckpoint is executed aswell. Why is that happening?
For example, this code:
The text is sent and it return 1. But then I get some text from normal checkpoints(no normal checkpoints were set).
For example, this code:
pawn Код:
if(checkpointid == LumberDropSiteCP)
{
if(get.IsCarryingWood[playerid])
{
new str[40];
ApplyAnimation(playerid,"CARRY","PUTDWN",4.1,0,1,1,0,1000,1);
RemovePlayerAttachedObject(playerid,3);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
set.IsCarryingWood[playerid]=false;
new money = random(7)+5;
GivePlayerMoneyB(playerid,money);
format(str,sizeof(str),"Uћ medienos atgabenima gavote %d LT",money);
SendClientMessage(playerid,INFO_COLOR, str);
return 1;
}
else ErrorMessageForPlayer(playerid,RED,"Jūs turite turėti medienos rankose!");
}