Textdrawhide on OnPlayerLeaveDynamicCP
#1

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;
}
Reply
#2

Remove IsPlayerInDynamicCP(playerid, CP) becouse the player has left the checkpoint !
Reply
#3

thanks park4bmx + rep
Fixed!
Topic Closed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)