[Ajuda] 1 Veiculo de vez.
#2

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.");
}
Reply


Messages In This Thread
1 Veiculo de vez. - by GuiPatussi - 28.07.2013, 23:25
Re: 1 Veiculo de vez. - by Kuddy - 28.07.2013, 23:29
Re: 1 Veiculo de vez. - by GuiPatussi - 28.07.2013, 23:31
Re: 1 Veiculo de vez. - by Kuddy - 28.07.2013, 23:35
Re: 1 Veiculo de vez. - by GuiPatussi - 28.07.2013, 23:38
Re: 1 Veiculo de vez. - by Kuddy - 28.07.2013, 23:43

Forum Jump:


Users browsing this thread: 2 Guest(s)