23.05.2009, 19:45
I'm using YCP and i need help.
I wrote in YCP topic but nobody answered me.
Wrote all the commands where they needed to be.
Checkpoint shows up perfectly. But when i enter it nothing happens.
That's my OnPlayerEnterCheckpoint callback. I didn't find any other good Checkpoint streamers so i used this one. If u know a better one please tell me it.
I wrote in YCP topic but nobody answered me.
Wrote all the commands where they needed to be.
Checkpoint shows up perfectly. But when i enter it nothing happens.
Код:
public OnPlayerEnterCheckpoint(playerid)
{
YCP_OnPlayerEnterCheckpoint(playerid);
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && IsPlayerInStreamCheckpoint(playerid,Docks))
{
return SendClientMessage(playerid,COLOR_ORANGE,"[INFO] Turi buti masinoi.");
}
else if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && IsPlayerInStreamCheckpoint(playerid,Docks))
{
ShowMenuForPlayer(Dokai,playerid);
}
return 1;
}

