/givecar doesnt work
#10

Try this:
pawn Код:
COMMAND:veh(playerid,params[])
    {

    new Float:X,Float:Y,Float:Z;
    new pName[MAX_PLAYER_NAME];
    if(sscanf(params,"ddd", vehid,Colorone,Colortwo)) return SendClientMessage(playerid, COLOR_WHITE, ""WHITE" Usage: "GREEN"/veh "WHITE"[vehid] [COLOR1] [COLOR2]");
    if(vehid < 400 ||vehid > 611) return SendClientMessage(playerid, COLOR_WHITE,"Veh id can't be below 400 or above 611");
    GetPlayerName(playerid, pName ,sizeof(pName));
    GetPlayerPos(playerid,X,Y,Z);
    new str[128];
    format(str , sizeof(str),"%s has create vehicle id %d ,Color1[%d],Color2[%d]",pName,vehid,Colorone,Colortwo);
    CreateVehicle(vehid,X,Y,Z,0,Colorone,Colortwo,false);
    SendClientMessageToAll(COLOR_LIGHTBLUE, str);
    return 1;
    }
Reply


Messages In This Thread
/givecar doesnt work - by thefatshizms - 31.05.2012, 16:43
Re: /givecar doesnt work - by HuSs3n - 31.05.2012, 17:00
Re: /givecar doesnt work - by thefatshizms - 31.05.2012, 17:07
Re: /givecar doesnt work - by MadeMan - 31.05.2012, 17:10
Re: /givecar doesnt work - by thefatshizms - 31.05.2012, 17:19
Re: /givecar doesnt work - by MadeMan - 01.06.2012, 14:39
Re: /givecar doesnt work - by thefatshizms - 01.06.2012, 14:47
Re: /givecar doesnt work - by MadeMan - 01.06.2012, 14:51
Re: /givecar doesnt work - by thefatshizms - 01.06.2012, 15:04
Re: /givecar doesnt work - by [D]ry[D]esert - 01.06.2012, 15:28

Forum Jump:


Users browsing this thread: 2 Guest(s)