21.02.2013, 21:12
Tenta com essa callback:
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if(newstate == PLAYER_STATE_DRIVER && oldstate != PLAYER_STATE_DRIVER)
{
if(PlayerToPoint(2.0,playerid,2453.6072,-1981.1222,13.5469))
{
PlayerInfo[playerid][pCarga] = 1;
SendClientMessage(playerid, COLOR_WHITE , "*Vocк pegou uma carga, leve ela atй sua HQ !.");
SetPlayerCheckpoint(playerid,-71.5407,-1123.4725,1.6677, 5.0);
}
}
return 1;
}