[Pedido] FS /VEH
#2

use mais o search.
pawn Код:
CMD:cv(playerid, params[])
{
    new modelo, cor1, cor2, string[110];
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))return SendClientMessage(playerid, 0xFFFFFFFF, "USE: /cv [modelo] [cor 1] [cor 2]");
    modelo = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(modelo < 400 || modelo > 611) return SendClientMessage(playerid, 0xFFFFFFFF, "[ERRO] O modelo nгo pode ser maior que 611 ou menor que 400.");
    if(!strlen(tmp)) return SendClientMessage(playerid, 0xFFFFFFFF, "USE: /cv [modelo] [cor 1] [cor 2]");
    cor1 = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, 0xFFFFFFFF, "USE: /cv [modelo] [cor 1] [cor 2]");
    cor2 = strval(tmp);
    DestroyVehicle(carroadm[playerid]);
    format(string, sizeof(string), "[AVISO] Vocк criou um Veнculo! Modelo [%d], Cor 1 [%d] e Cor 2 [%d].", modelo, cor1, cor2);
    SendClientMessage(playerid, 0xFFFFFFFF, string);
    new Float:X, Float:Y, Float:Z, Float: angulo;
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, angulo);
    carroadm[playerid] = CreateVehicle(modelo, X, Y, Z-1, angulo, cor1, cor2, RESPAWN);
    return 1;
}}
Reply


Messages In This Thread
FS /VEH - by ofviac - 07.12.2013, 18:44
Re: FS /VEH - by DannielCooper - 07.12.2013, 19:29
Respuesta: FS /VEH - by TorresPutado - 07.12.2013, 19:56

Forum Jump:


Users browsing this thread: 1 Guest(s)