SA-MP Forums Archive
Textdrawhide on OnPlayerLeaveDynamicCP - 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: Textdrawhide on OnPlayerLeaveDynamicCP (/showthread.php?tid=393796)



Textdrawhide on OnPlayerLeaveDynamicCP - Patrick - 19.11.2012

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;
}



Re: Textdrawhide on OnPlayerLeaveDynamicCP - park4bmx - 19.11.2012

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


Re: Textdrawhide on OnPlayerLeaveDynamicCP - Patrick - 19.11.2012

thanks park4bmx + rep
Fixed!
Topic Closed