14.01.2014, 12:31
Topo do gamemode
Comando
Tenta aн.
Код:
new xCarroCriado[MAX_PLAYERS];
Код:
CMD:v(playerid, params[]) { static carro, Float:X, Float:Y, Float:Z, xCor, xCor2, Float:Angle; if(sscanf(params, "ddd", carro, xCor, xCor2)) return SendClientMessage(playerid, -1, "/v [id carro] [cor1] [cor2]."); if(carro < 400 || carro > 611) return SendClientMessage(playerid, -1, "ID invбlido, de 400 a 611 apenas"); if(xCor < 0 || xCor > 255) return SendClientMessage(playerid, -1, "ID invбlido cor de 1 a 255."); if(xCor2 < 0 || xCor2 > 255) return SendClientMessage(playerid, -1, "ID invбlido cor de 1 a 255."); if(xCarroCriado[playerid] != 0) DestroyVehicle(xCarroCriado[playerid]); GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, Angle); xCarroCriado[playerid] = AddStaticVehicleEx(carro, X, Y, Z, Angle, xCor, xCor2, -1); PutPlayerInVehicle(playerid, xCarroCriado[playerid], 0); return 1; }