How to make it with ZCMD & sscanf?
#3

maybe you want something like this

pawn Код:
CMD:veh(playerid,params[])
{
    new id,cor,cor1;
    if(sscanf(params, "ddd", id, cor,cor1))  SendClientMessage(playerid,-1, ,"USO: /veh [model] [color1] [color2]");
    else if (id < 400 || id > 611)  SendClientMessage(playerid,-1, "Between 400 and 611");
    else if (cor < 0 || cor1 > 126) SendClientMessage(playerid,-1, "Color between 0 and 126");
    else
    {
        if(IsPlayerAdmin(playerid))
        {
            new Float:X,Float:Y,Float:Z;
            GetPlayerPos(playerid, X,Y,Z);
            CreateVehicle(id,X+2,Y,Z,0.0,cor,cor1,-1);
        }
    }
    return 1;
}
Reply


Messages In This Thread
How to make it with ZCMD & sscanf? - by Spooky - 24.12.2011, 12:32
Re: How to make it with ZCMD & sscanf? - by Ash. - 24.12.2011, 12:40
Re: How to make it with ZCMD & sscanf? - by StreetGT - 24.12.2011, 12:40
Re: How to make it with ZCMD & sscanf? - by Spooky - 24.12.2011, 13:25
Re: How to make it with ZCMD & sscanf? - by Ash. - 24.12.2011, 13:37
Re: How to make it with ZCMD & sscanf? - by Spooky - 24.12.2011, 13:43
Re: How to make it with ZCMD & sscanf? - by Spooky - 24.12.2011, 13:48
Re: How to make it with ZCMD & sscanf? - by coole210 - 24.12.2011, 14:03
Re: How to make it with ZCMD & sscanf? - by Spooky - 24.12.2011, 14:07
Re: How to make it with ZCMD & sscanf? - by coole210 - 24.12.2011, 15:07

Forum Jump:


Users browsing this thread: 1 Guest(s)