Jump to content
  • 0

[GF/RP] Nu merge /rc la vip


Question

Posted

am un gm si am comanda de respawn car /rc si nu merge daca imi dau admin merge dar daca imi dau si vip zice ca num am autorizatie [pawn]    if(strcmp(cmd, "/respawnthiscar", true) == 0 || strcmp(cmd, "/rc", true) == 0) // by Ellis

{

    if(IsPlayerConnected(playerid))

    {

        if(PlayerInfo[playerid][pAdmin] >= 2 )

{

    SendClientMessage(playerid, COLOR_GRAD1, "  you are not authorized to use that command!");

    return 1;

}

if(IsPlayerInAnyVehicle(playerid))

{

    GetPlayerName(playerid, sendername, sizeof(sendername));

    format(string, 256, "[ADMIN] %s has just respawned vehicle id %d.",sendername,GetPlayerVehicleID(playerid));

ABroadCast(COLOR_YELLOW,string,1);

    SetVehicleToRespawn(GetPlayerVehicleID(playerid));

  RemovePlayerFromVehicle(playerid);

    SendClientMessage(playerid, COLOR_GREY, "  Vehicle Respawned !");

  }

}

return 1;

}[/pawn]

Trebe adaugat si in Fs ceva ?

3 answers to this question

Recommended Posts

Posted

am un gm si am comanda de respawn car /rc si nu merge daca imi dau admin merge dar daca imi dau si vip zice ca num am autorizatie [pawn]    if(strcmp(cmd, "/respawnthiscar", true) == 0 || strcmp(cmd, "/rc", true) == 0) // by Ellis

{

    if(IsPlayerConnected(playerid))

    {

        if(PlayerInfo[playerid][pAdmin] < 2  || PlayerInfo[playerid][pVip] < 2)//schimba cu ce level vrei tu si pVip daca ai altfel.

{

    SendClientMessage(playerid, COLOR_GRAD1, "  you are not authorized to use that command!");

    return 1;

}

if(IsPlayerInAnyVehicle(playerid))

{

    GetPlayerName(playerid, sendername, sizeof(sendername));

    format(string, 256, "[ADMIN] %s has just respawned vehicle id %d.",sendername,GetPlayerVehicleID(playerid));

ABroadCast(COLOR_YELLOW,string,1);

    SetVehicleToRespawn(GetPlayerVehicleID(playerid));

  RemovePlayerFromVehicle(playerid);

    SendClientMessage(playerid, COLOR_GREY, "  Vehicle Respawned !");

  }

}

return 1;

}[/pawn]

Trebe adaugat si in Fs ceva ?

gXvsYS
Posted

Comanda e numa pentru admin :\

Daca vrei sa fie si pt VIP, inlocuie if(PlayerInfo[playerid][pAdmin] >= 2 ) cu

[pawn]if(PlayerInfo[playerid][pAdmin] >= 2 || PlayerInfo[playerid][pDonateRank] >= 1 )//modifici cu ce lvl de vip vrei.[/pawn]

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Posted

uite

pentru vip level 1

[pawn]if(strcmp(cmd, "/vrtc", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

        if(PlayerInfo[playerid][pVip] >= 1)

{

    SendClientMessage(playerid, COLOR_GRAD1, "  you are not authorized to use that command!");

    return 1;

}

if(IsPlayerInAnyVehicle(playerid))

{

    GetPlayerName(playerid, sendername, sizeof(sendername));

    format(string, 256, "[VIP] %s has just respawned vehicle id %d.",sendername,GetPlayerVehicleID(playerid));

ABroadCast(COLOR_YELLOW,string,1);

    SetVehicleToRespawn(GetPlayerVehicleID(playerid));

  RemovePlayerFromVehicle(playerid);

    SendClientMessage(playerid, COLOR_GREY, "  Vehicle Respawned !");

  }

}

return 1;

}[/pawn]

Guest
This topic is now closed to further replies.
×
×
  • 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.