Jump to content
  • 0

intrebare intrebatuare


Zapakitu

Question

2 answers to this question

Recommended Posts

[pawn]//-----------------------------------editstat---------------------------------------

if(strcmp(cmd, "/setstat", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /setstat [playerid/PartOfName] [statcode] [amount]");

SendClientMessage(playerid, COLOR_GRAD4, "|1 Level |2 SpawnHealth |3 UpgradePoints |4 Model |5 BankAccount");

SendClientMessage(playerid, COLOR_GRAD3, "|6 PhoneNumber |7 RespectPoints |8 HouseKey |9 BizKey |10 DonateRank");

SendClientMessage(playerid, COLOR_GRAD2, "|11 FMember |12 Det |13 avocat |14 Fixer |15 News |16 Jack |17 Drug");

SendClientMessage(playerid, COLOR_GRAD2, "|18 Sex |19 Box |20 PassKey |21 VehKey1 |22 VehKey2 |23 VehKey3");

return 1;

}

giveplayerid = ReturnUser(tmp);

            if(IsPlayerConnected(giveplayerid))

    {

        if(giveplayerid != INVALID_PLAYER_ID)

        {

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /setstat [playerid/PartOfName] [statcode] [amount]");

SendClientMessage(playerid, COLOR_GRAD4, "|1 Level |2 SpawnHealth |3 UpgradePoints |4 Model |5 BankAccount");

SendClientMessage(playerid, COLOR_GRAD3, "|6 PhoneNumber |7 RespectPoints |8 HouseKey |9 BizKey |10 DonateRank");

SendClientMessage(playerid, COLOR_GRAD2, "|11 FMember |12 Det |13 avocat |14 Fixer |15 News |16 Jack |17 Drug");

      SendClientMessage(playerid, COLOR_GRAD2, "|18 Sex |19 Box |20 PassKey |21 VehKey1 |22 VehKey2 |23 VehKey3");

return 1;

}

new stat;

stat = strval(tmp);

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /setstat [playerid/PartOfName] [statcode] [amount]");

SendClientMessage(playerid, COLOR_GRAD4, "|1 Level |2 SpawnHealth |3 UpgradePoints |4 Model |5 BankAccount");

SendClientMessage(playerid, COLOR_GRAD3, "|6 PhoneNumber |7 RespectPoints |8 HouseKey |9 BizKey |10 DonateRank");

SendClientMessage(playerid, COLOR_GRAD2, "|11 FMember |12 Det |13 avocat |14 Fixer |15 News |16 Jack |17 Drug");

    SendClientMessage(playerid, COLOR_GRAD2, "|18 Sex |19 Box |20 PassKey |21 VehKey1 |22 VehKey2 |23 VehKey3");

return 1;

}

new amount;

amount = strval(tmp);

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

{

switch (stat)

{

case 1:

{

PlayerInfo[giveplayerid][pLevel] = amount;

format(string, sizeof(string), "  The Player Was Set To Level %d", amount);

}

case 2:

{

PlayerInfo[giveplayerid][pSHealth] = amount;

format(string, sizeof(string), "  The Player Was Set To %d Spawnhealth ", amount);

}

case 3:

{

PlayerInfo[giveplayerid][gPupgrade] = amount;

format(string, sizeof(string), "  The Player Was Set To %d Upgrade Points", amount);

}

case 4:

{

PlayerInfo[giveplayerid][pModel] = amount;

format(string, sizeof(string), "  The Player Was Set To Model %d", amount);

}

case 5:

{

PlayerInfo[giveplayerid][pAccount] = amount;

format(string, sizeof(string), "  The Player Account Was Set To $%d", amount);

}

case 6:

{

PlayerInfo[giveplayerid][pPnumber] = amount;

format(string, sizeof(string), "  The Player Phone Number Was Set To %d", amount);

}

case 7:

{

PlayerInfo[giveplayerid][pExp] = amount;

format(string, sizeof(string), "  The Player Respect Points Were Set To %d", amount);

}

case 8:

{

PlayerInfo[giveplayerid][pPhousekey] = amount;

format(string, sizeof(string), "  The Player House Key Was Set To %d", amount);

}

case 9:

{

PlayerInfo[giveplayerid][pPbiskey] = amount;

format(string, sizeof(string), "  The Player Business Key Was Set To %d", amount);

}

case 10:

{

PlayerInfo[giveplayerid][pDonateRank] = amount;

format(string, sizeof(string), "  The Player DonateRank Was Set To %d", amount);

}

case 11:

{

PlayerInfo[giveplayerid][pFMember] = amount;

format(string, sizeof(string), "  The Player Family Member Was Set To %d", amount);

}

case 12:

{

PlayerInfo[giveplayerid][pDetSkill] = amount;

format(string, sizeof(string), "  The Player Detective Skill Set To %d", amount);

}

case 13:

{

PlayerInfo[giveplayerid][pLawSkill] = amount;

format(string, sizeof(string), "  The Player avocat Skill Set To %d", amount);

}

case 14:

{

PlayerInfo[giveplayerid][pMechSkill] = amount;

format(string, sizeof(string), "  The Player Mecanic Skill Set To %d", amount);

}

case 15:

{

PlayerInfo[giveplayerid][pNewsSkill] = amount;

format(string, sizeof(string), "  The Player News Reporter Skill Set To %d", amount);

}

case 16:

{

PlayerInfo[giveplayerid][pJackSkill] = amount;

format(string, sizeof(string), "  The Player Car Jacker Skill Set To %d", amount);

}

case 17:

{

PlayerInfo[giveplayerid][pDrugsSkill] = amount;

format(string, sizeof(string), "  The Player Drug Dealer Skill Set To %d", amount);

}

case 18:

{

PlayerInfo[giveplayerid][pSexSkill] = amount;

format(string, sizeof(string), "  The Player Sex Skill Set To %d", amount);

}

case 19:

{

PlayerInfo[giveplayerid][pBoxSkill] = amount;

format(string, sizeof(string), "  The Player Box Skill Set To %d", amount);

}

case 21:

{

    PlayerInfo[giveplayerid][pPcarkey] = amount;

    format(string, sizeof(string), "  The Player VehKey1 Set To %d", amount);

}

case 22:

{

    PlayerInfo[giveplayerid][pPcarkey2] = amount;

    format(string, sizeof(string), "  The Player VehKey2 Set To %d", amount);

}

case 23:

{

    PlayerInfo[giveplayerid][pPcarkey3] = amount;

    format(string, sizeof(string), "  The Player VehKey3 Set To %d", amount);

}

case 77:

{

PlayerInfo[giveplayerid][pJob] = amount;

format(string, sizeof(string), "  The Player Job Set To %d", amount);

}

case 88:

{

PlayerInfo[giveplayerid][pContractTime] = amount;

format(string, sizeof(string), "  The Player Job Contract Time Set To %d", amount);

}

default:

{

format(string, sizeof(string), "  Invalid Stat Code", amount);

}

}

SendClientMessage(playerid, COLOR_GRAD1, string);

}

else

{

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

}

}//not valid id

}//not connected

}

return 1;

}[/pawn]

Uite setstat

HostName: [RPG]*|| Ecila Royal Gaming ||*-WIPED

Address:  93.114.82.70:7777

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.