/vget command
#1

how to make it that if it type /vget i get the vehicle id i have typed to my location.

i have it in dcmd

but i want it in zcmd

i have this here

pawn Код:
dcmd_vget(playerid,params[])
{
    if(AccInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid))
    {
        if(!strlen(params)) return
        SendClientMessage(playerid, LIGHTBLUE2, "Usage: /vget [VehicleID]") &&
        SendClientMessage(playerid, orange, "Function: Will Bring the specified Vehicle to your Position");
        new player1;
        new string[128];
        player1 = strval(params);
        SendCommandToAdmins(playerid,"VGet");
        new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid,x,y,z);
        SetVehiclePos(player1,x+3,y,z);
        SetVehicleVirtualWorld(player1,GetPlayerVirtualWorld(playerid));
        format(string,sizeof(string),"|- You brought the Vehicle ID '%d' to your Position -|", player1);
        return SendClientMessage(playerid,BlueMsg,string);
    }
    else return ErrorMessages(playerid, 1);
}
Reply
#2

anyone
Reply
#3

pawn Код:
CMD:vget(playerid, params[])
{
    if(AccInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid))
    {
        if(!strlen(params)) return
        SendClientMessage(playerid, LIGHTBLUE2, "Usage: /vget [VehicleID]") &&
        SendClientMessage(playerid, orange, "Function: Will Bring the specified Vehicle to your Position");
        new player1;
        new string[128];
        player1 = strval(params);
        SendCommandToAdmins(playerid,"VGet");
        new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid,x,y,z);
        SetVehiclePos(player1,x+3,y,z);
        SetVehicleVirtualWorld(player1,GetPlayerVirtualWorld(playerid));
        format(string,sizeof(string),"|- You brought the Vehicle ID '%d' to your Position -|", player1);
        return SendClientMessage(playerid,BlueMsg,string);
    }
    else return ErrorMessages(playerid, 1);
}
Reply
#4

OK,so,RollTi is right,BUT,are you going to learn the vehicles ID(wich vehicleid what car is)?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)