17.12.2010, 13:51
Код:
if(strcmp(cmd, "/getcar", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /getcar [carid]"); return 1; } new tmpVehID; tmpVehID = strval(tmp); new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); new vehid = CreateVehicle(tmpVehID, X,Y,Z, 0.0, 3, 3, 60000); PutPlayerInVehicle(playerid, vehid, SeatDriveMod); } return 1; }