09.01.2014, 21:39
pawn Код:
new bool:Mostrou_Nome[MAX_PLAYERS];
public OnPlayerConnect(playerid) {
Mostrou_Nome[playerid] = false;
return true;
}
public OnPlayerUpdate(playerid) {
if(IsPlayerInAnyVehicle(playerid)) {
if(!Mostrou_Nome[playerid]) {
new string3[256];
format(string3, sizeof(string3), "~g~%s",VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
GameTextForPlayer(playerid, string3, 6000, 1);
Mostrou_Nome[playerid] = true;
}
}
else if(!IsPlayerInAnyVehicle(playerid)) {
if(Mostrou_Nome[playerid])
return Mostrou_Nome[playerid] = false;
}
return true;
}