De multe ori intalnim probleme la " /oldcar " , asa ca m-am hotarat sa va arat cum puteti face fara.
- Sus in script :
Cod:
new Nume;
- sub OnGameModeInit:
Cod:
Nume = AddStaticVehicle(coordonate);
( /save in joc )
- sub public OnPlayerStateChange
Cod:
if(GetPlayerVehicleID(playerid) == Nume)
{
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(strcmp(sendername,"Numele jucatorului caruia o faci",true))
{
SendClientMessage(playerid,COLOR_GREY," You do not have the keys of this car !");
RemovePlayerFromVehicle(playerid);
}
}