Leave Checkpoint
#1

hello
When a player is out of the checkpoint.
Nothing happens.
Where is the problem?
Thanks
Код:
public OnPlayerLeaveCheckpoint(playerid)
{
    if(CPS_IsPlayerInCheckpoint(playerid, CP_ROB_shop))
    {
        if(ROB_shop[playerid] >= 1)
        {
            SendClientMessage(playerid, 0xFFFFFFFF, "{FF9900}Failed.");
            ROB_shop[playerid] = 0;
        }
	    return 1;
    }
    return 1;
}
Reply
#2

pawn Код:
public OnPlayerLeaveCheckpoint(playerid)
{
    if(CPS_IsPlayerInCheckpoint(playerid, CP_ROB_shop))
    {
        if(ROB_shop[playerid] >= 1)
        {
            SendClientMessage(playerid, 0xFFFFFFFF, "{FF9900}Failed.");
            ROB_shop[playerid] = 0;
        }
    }
    return 1;
}
Should work I guess.
Reply
#3

I find problem.
thanks for help
Код:
public OnPlayerLeaveCheckpoint(playerid)
{
    if(ROB_shop[playerid] >= 1)
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "Failed.");
        ROB_shop[playerid] = 0;
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)