Jump to content

Question

Posted

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;
}

Recommended Posts

  • 0
Posted

@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

asgood.ro

 

 

 

  • 0
Posted
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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.