19.11.2012, 20:15
hi guyz i got a problem when player leave the checkpoint 'CP' i made right 'i think' but when i leave the checkpoint the textdraw dont hide can anyone help me? + rep
pawn Код:
public OnPlayerLeaveDynamicCP(playerid, checkpointid)
{
if(checkpointid == CP && IsPlayerInDynamicCP(playerid, CP))
{
if(RobbingChurch[playerid] >= 1)
{
SendClientMessage(playerid,COLOR_ERROR,"Church robbery attempt failed. You left the checkpoint ..");
RobbingChurch[playerid] =0;
TextDrawHideForPlayer(playerid, TDBox);
TextDrawHideForPlayer(playerid, TDText);
TextDrawHideForPlayer(playerid, TDTime[playerid]);
return 1;
}
return 1;
}
return 1;
}