Quote:
Originally Posted by Kuddy
pawn Код:
new playervehicle[MAX_PLAYERS];
CMD:cv(playerid, params[]) { new carid, color1, color2; new Float:_x,Float:_y,Float:_z; if( sscanf(params, "ddd", carid, color1, color2) ) return SendClientMessage(playerid, 0xff000000, "{990000}[ERRO] Modo correto de uso: /cv [ID-DO-CARRO] [COR1] [COR2]"); if( carid < 400 || carid > 611 ) return SendClientMessage(playerid, 0xff000000, "{990000}[ERRO] O ID do veнculo deve ser entre 400 e 611"); GetPlayerPos(playerid, _x, _y, _z); if(playervehicle[playerid] != 0) DestroyVehicle(playervehicle[playerid]); playervehicle[playerid] = CreateVehicle(carid, _x, _y, _z, 0.0, color1, color2, 0); return SendClientMessage(playerid, 0x00ff0000, "{00FF1E}[INFO] Veнculo Criado Com Sucesso."); }
|
Obrigado kuddy, vou testar, alнas, tem como colocar um textlabel anexada no veiculo pra tipo: Veiculo de %s [ID: %i]??
..