28.03.2013, 23:25
Cuando intento usar este comando me salta el mensaje de "SERVER: UNKNOWN COMMAND"
Код:
CMD:veh(playerid, params[]) { new model, Float:pPos[4]; if(sscanf(params, "d", model)) return SendClientMessage(playerid, -1, "{32CD32}Uso:{FFFFFF} /veh (ID)."); GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]); GetPlayerFacingAngle(playerid, pPos[3]); if(!IsPlayerInAnyVehicle(playerid)) { new currentveh; currentveh = GetPlayerVehicleID(playerid); DestroyVehicle(currentveh); } SendClientMessage(playerid, -1, "Acabas de spawnear un vehнculo (ID: {ADFF2F}%d{FFFFFF} / Nombre:{ADFF2F}%s{FFFFFF}).", model, NombreCoches[GetVehicleModel(GetPlayerVehicleID(playerid))-400]); PutPlayerInVehicle(playerid, CreateVehicle(model, pPos[0], pPos[1], pPos[2], pPos[3], random(126), random(126), -1), 0); return 1; }