28.07.2011, 21:02
Hi i know there's a getplayervehicleID but is there a getplayerskinID or something like it?
I want to lock a skin to a certain name, but i only know how to do it for a vehicle.
My code.
I want to lock a skin to a certain name, but i only know how to do it for a vehicle.
My code.
Код:
new Chrillzen2;
Код:
new Playername[24]; GetPlayerName(playerid, Playername, sizeof(Playername)); if(newstate == PLAYER_STATE_DRIVER) { new Vehicle = GetPlayerVehicleID(playerid);
Код:
Chrillzen2 = AddStaticVehicleEx(482,1879.5073,-2000.0099,13.6774,179.4263,0,0, 9999999999999); // Chrillz car
Код:
if(Vehicle == Chrillzen2) // vehicle id { if(strcmp(Playername,"[LK]Chrillzen",true)) // player name { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_RED, "This is Chrillzen's private vehicle!"); } }