05.10.2011, 23:47
Exemplo:
Testa assim
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
for(new x; x<strlen(Taxista);x++)
{
new veh = GetPlayerVehicleID(playerid);
if(veh == Taxista[x] && PlayerInfo[playerid][Taxistas] != 1)
{
RemovePlayerFromVehicle(playerid);
return 1;
}
}
}
return 1;
}