12.09.2013, 01:59
Код:
if(strcmp(cmd, "/arrancar",true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { if(GetPlayerVehicleSeat(playerid) == 1) return SendClientMessage(playerid, -1, "Necesitas estar en el asiento del conductor."); new vid = GetPlayerVehicleID(playerid); if(vid != INVALID_VEHICLE_ID) { FreezeThenAutoUnfreeze(playerid, 3000); GameTextForPlayer(playerid,"Has encendido el motor!",3000,4); GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); /*new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "* %s Encendio el motor de su vehiculo.", name );*/ } return 1; } else return SendClientMessage(playerid, COLOR_RED,"Nesesitas estar en un vehiculo"); }