Jump to content
  • 0

Ajutor comanda /vre


SeNaToRuL.

Question

Salut ma ajutati si pe mine sa fac ca aceasta comanda sa mearga si cand sunt in masina si cand sunt afara cu [id] a masinii. (utilizez gm burned)

 

CMD:respawnthiscar(playerid, params[])
{    
    if(PlayerInfo[playerid][pAdmin] < 1) return 1;
    if(!IsPlayerInAnyVehicle(playerid)) return 1;
       SetVehicleToRespawn(GetPlayerVehicleID(playerid));
    new string[180];
    format(string, sizeof(string), "AdmCmd: %s respawned vehicle %d.", GetName(playerid), GetPlayerVehicleID(playerid));
    SendAdminMessage(COLOR_RED, string, 1);
    return 1;
}

Link to comment
Share on other sites

Recommended Posts

  • 0

@SeNaToRuL. incearca asta:

CMD:vre(playerid, params[]) {
    new vid, string[128]; 
    if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, -1, AdminOnly);
    if(IsPlayerInAnyVehicle(playerid))
    {
        format(string, sizeof(string), "AdmCMD: %s has respawned vehicle %d", GetName(playerid),  GetPlayerVehicleID(playerid));
        SendAdminMessage(COLOR_LIGHTRED, string, 1);
        SetVehicleToRespawn(GetPlayerVehicleID(playerid));
    }
    else 
    {
        if(sscanf(params, "i", vid))return SCM(playerid, -1, "/vre <Vehicle ID>");
        {
            format(string, sizeof(string), "AdmCMD: %s has respawned vehicle %d", GetName(playerid), vid);
            SendAdminMessage(COLOR_LIGHTRED, string, 1);
            SetVehicleToRespawn(vid);
        }
    }
    return 1;
}

 

  • Like 1

maxresdefault.jpg

 

 

 

Link to comment
Share on other sites

  • 0
Chiar acum, ASGOOD a spus:

@SeNaToRuL. incearca asta:


CMD:vre(playerid, params[]) {
    new vid, string[128]; 
    if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, -1, AdminOnly);
    if(IsPlayerInAnyVehicle(playerid))
    {
        format(string, sizeof(string), "AdmCMD: %s has respawned vehicle %d", GetName(playerid),  GetPlayerVehicleID(playerid));
        SendAdminMessage(COLOR_LIGHTRED, string, 1);
        SetVehicleToRespawn(GetPlayerVehicleID(playerid));
    }
    else 
    {
        if(sscanf(params, "i", vid))return SCM(playerid, -1, "/vre <Vehicle ID>");
        {
            format(string, sizeof(string), "AdmCMD: %s has respawned vehicle %d", GetName(playerid), vid);
            SendAdminMessage(COLOR_LIGHTRED, string, 1);
            SetVehicleToRespawn(vid);
        }
    }
    return 1;
}

 

Mult mai ok mersi mult.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.