16.08.2012, 17:17
Код:
if (strcmp("/elegy", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "ERROR: You already have a car."); new Float:X, Float:Y, Float:Z, elegy; GetPlayerPos(playerid, X, Y, Z); elegy = CreateVehicle(562, X, Y, Z, 0.0, 0, 0, 0); PutPlayerInVehicle(playerid, elegy, 0); return 1; }