30.03.2019, 23:57
Tente desta forma:
Код:
CMD:veh (playerid, params[]) { new STR[128], Float:X, Float:Y, Float:Z, Float:A, Modelo, c1, c2; if(sscanf(params, "ddd", Modelo, c1, c2)) return SendClientMessage(playerid, COR_VERMELHO, "| AVISO | Use:/veh [Modelo] [cor1] [cor2] "); if(!(Modelo >= 400 && Modelo <= 611)) return SendClientMessage(playerid, COR_VERMELHO, "| AVISO | ID Invбlido use [400 a 611]"); { if(Carro[playerid]) DestroyVehicle(Carro[playerid]); GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, A); Carro[playerid] = CreateVehicle(Modelo, X, Y, Z, A, c1, c2, 10000); PutPlayerInVehicle(playerid, Carro[playerid], 0); format(STR, sizeof (STR), "| INFO | Vocк criou o Veiculo %d com Sucesso.", Modelo ); SendClientMessage(playerid, COR_VERDECLARO, STR); } return 1; } CMD:delveh (playerid, params[]) { if(Carro[playerid]) DestroyVehicle(Carro[playerid]), Carro[playerid] = 0; return 1; }