HOW CAN I MAKE GIVE ALL
#1

HOW CAN I MAKE THIS CMD WITH ZCMD

/giveallveh [veh id]


if i use this cmd i will give all player that veh
Reply
#2

pawn Код:
CMD:giveallveh(playerid, params[])
{
    new model, car;
    if(sscanf(params, "d", model)) return SendClientMessage(playerid, -1, "Usage: /giveallveh [model]");
   
    new Float:x, Float:y, Float:z, Float:a;
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            GetPlayerPos(i, x, y, z);
            GetPlayerFacingAngle(i, a);
            car = CreateVehicle(model, x, y, z, a, -1, -1, 0);
            PutPlayerInVehicle(i, car, 0);
        }
    }
   
    return 1;
}
Reply
#3

Thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)