#10

pawn Код:
CMD:vcall(playerid, params[])
{
    new vehicle;
    if(sscanf(params, "u", vehicle)) return SendClientMessage(playerid, COLOR_RED, "/vcall (1-15)");
    if(vehicle < 1 && vehicle > 15) return SendClientMessage(playerid, COLOR_RED, "/vcall (1-15)");
    {
        if(vehicle == 1) // first vehicle
        {
            CallVehicleToPlayer(playerid);
            return 1;
        }
        else if(vehicle == 2) //second vehicle etc.
        {
            CallVehicle2ToPlayer(playerid);
            return 1;
        }
    }
    return 1;
}
Let me know if this works.
Reply


Messages In This Thread
Why? - by Windrush - 19.08.2012, 11:04
Re: Why? - by ddnbb - 19.08.2012, 11:07
Re: Why? - by Windrush - 19.08.2012, 11:08
Re: Why? - by SEnergy - 19.08.2012, 11:10
Re: Why? - by Windrush - 19.08.2012, 11:13
Re: Why? - by SEnergy - 19.08.2012, 11:14
Re: Why? - by ddnbb - 19.08.2012, 11:37
Re: Why? - by Windrush - 19.08.2012, 11:41
Re: Why? - by Windrush - 19.08.2012, 11:55
Re: Why? - by ddnbb - 19.08.2012, 12:14

Forum Jump:


Users browsing this thread: 1 Guest(s)