give player vehicle
#1

Well as the title says I want a command for example / darauto [player] [auto] for administrators
Reply
#2

Quote:
Originally Posted by Spawe
Посмотреть сообщение
Well as the title says I want a command for example / darauto [player] [auto] for administrators
Код:
CMD:darauto(playerid, params[])
{
//    if(AdminVar[playerid] != Adminlevel) return SendClientMessage(playerid, -1, "ERROR: Your admin level has not authorize on this command!");
    new targetid, model;
    if(sscanf(params, "ui", targetid, model))
    {
        return SendClientMessage(playerid, -1, "USAGE: /givepveh [playerid] [modelid]");
    }
    if(!(400 <= model <= 611))
    {
        return SendClientMessage(playerid, -1, "Invalid vehicle id");
    }
    new Float:posx, Float:posy, Float:posz, Float:a;
    GetPlayerPos(targetid, posx, posy, posz);
    GetPlayerFacingAngle(targetid, a);
	AddStaticVehicleEx(model, posx, posy, posz, a, -1, -1, -1);
    return 1;
}
Reply
#3

Thank brooo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)