De multe ori intalnim probleme la " /oldcar " , asa ca m-am hotarat sa va arat cum puteti face fara.
- Sus in script :
Code:
new Nume;
- sub OnGameModeInit:
Code:
Nume = AddStaticVehicle(coordonate);
( /save in joc )
- sub public OnPlayerStateChange
Code:
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);
}
}