21.12.2014, 18:35
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid)) { print("working"); if(GetPlayerVehicleID(playerid) == dini_Int(File, "CarID")) { print("Working2"); new pln[MAX_PLAYER_NAME]; GetPlayerName(playerid, pln, sizeof(pln)); if(strcmp(pln,dini_Get(File, "Owner"),false))// == 0) { return 1; } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, RED, "This isn't ur vehicle!"); } } } return 1; }
Edit: in the console i see the first working message ( print("working"); )