Cum sa adaugi un vehicul pe nume !!
Posted: Mon Oct 24, 2011 5:39 am
Faceti exact ca aici
new admincar;
public OnGameModeInit()
{
admincar = AddStaticVehicle(ID,x,y,z,233.9429,1,62); // Vehicul
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new PlayerName[24];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(newstate == PLAYER_STATE_DRIVER)
{
new Vehicle = GetPlayerVehicleID(playerid);
if(Vehicle == admincar)
{
if(strcmp(PlayerName,"Numele playerului",true))
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0x33AA33AA, "Imi pare rau , Aceasta masina este a lui SiCE");
}
}
}
return 1;
}
new admincar;
public OnGameModeInit()
{
admincar = AddStaticVehicle(ID,x,y,z,233.9429,1,62); // Vehicul
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new PlayerName[24];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(newstate == PLAYER_STATE_DRIVER)
{
new Vehicle = GetPlayerVehicleID(playerid);
if(Vehicle == admincar)
{
if(strcmp(PlayerName,"Numele playerului",true))
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0x33AA33AA, "Imi pare rau , Aceasta masina este a lui SiCE");
}
}
}
return 1;
}