• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ostats and osetlevel need commands
#1
anyone knows commands? give me ty Smile

/ostats = can see when player os offline
/osetlevel =  can set level when player is offline
  Reply
#2
I have.
  Reply
#3
(04-12-2016, 03:45 PM)Mark_Joshua18 Wrote: I have.

give me osetlevel and ostats cmd
  Reply
#4
anyone ??
  Reply
#5
You can search it on official samp forum or search on google
  Reply
#6
I have but if i gve what i get?
  Reply
#7
i have this command..

PHP Code:
CMD:ocheck(playeridparams[]) {
    if(
PlayerInfo[playerid][pAdmin] < 2)
        return 
SendClientMessage(playeridCOLOR_GRAD1"You're not authorized to use that command!");

    if(
AdminDuty[playerid] != && PlayerInfo[playerid][pAdmin] < 5)
 
         return SendClientMessage(playerid,COLOR_WHITE"You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");

    if(
isnull(params))
        return 
SendClientMessage(playeridCOLOR_WHITE"USAGE: /ocheck [name]");

    if(
doesAccountExist(params))
    {
     
   OnPlayerOfflineLogin(params);

     
   new facgang[20], employer[64], rank[64], division[64], jtext[20], jtext2[20];
     
   new level PlayerInfo[MAX_PLAYERS][pLevel];
     
   new phours PlayerInfo[MAX_PLAYERS][pConnectTime];
        new 
respect PlayerInfo[MAX_PLAYERS][pRespect];
        new 
nxtlevel PlayerInfo[MAX_PLAYERS][pLevel]+1;
        new 
expamount nxtlevel*levelexp;
        new 
costlevel nxtlevel*2500;
        new 
pnumber PlayerInfo[MAX_PLAYERS][pNumber];
        new 
warns PlayerInfo[MAX_PLAYERS][pWarns];

        
facgang "Faction";
        
employer "None";
        
rank "None";
        if(
PlayerInfo[MAX_PLAYERS][pGang] < 255)
        {
         
   facgang "Family"division "None";
            
format(employersizeof(employer), "%s"FamilyInfo[PlayerInfo[MAX_PLAYERS][pGang]][FamilyName]);
            switch(
PlayerInfo[MAX_PLAYERS][pRank])
            {
                case 
1format(ranksizeof(rank), "%s"FamilyInfo[PlayerInfo[MAX_PLAYERS][pGang]][FamilyRank1]);
                case 
2format(ranksizeof(rank), "%s"FamilyInfo[PlayerInfo[MAX_PLAYERS][pGang]][FamilyRank2]);
                case 
3format(ranksizeof(rank), "%s"FamilyInfo[PlayerInfo[MAX_PLAYERS][pGang]][FamilyRank3]);
                case 
4format(ranksizeof(rank), "%s"FamilyInfo[PlayerInfo[MAX_PLAYERS][pGang]][FamilyRank4]);
                case 
5format(ranksizeof(rank), "%s"FamilyInfo[PlayerInfo[MAX_PLAYERS][pGang]][FamilyRank5]);
     
             case 6format(ranksizeof(rank), "%s"FamilyInfo[PlayerInfo[MAX_PLAYERS][pGang]][FamilyRank6]);
                default: 
format(ranksizeof(rank), "%s"FamilyInfo[PlayerInfo[MAX_PLAYERS][pGang]][FamilyRank1]);
            }
        }
        else {
 
           GetPlayerFactionInfo(MAX_PLAYERSrankdivisionemployer);
        }

        switch(
PlayerInfo[MAX_PLAYERS][pJob])
        {
            case 
1jtext "Detective";
            case 
2jtext "Lawyer";
            case 
3jtext "Whore";
            case 
4jtext "Drugs Dealer";
            case 
5jtext "Car Jacker";
            
//case 6: jtext = "News Reporter";
            
case 7jtext "Car Mechanic";
            case 
8jtext "Bodyguard";
            case 
9jtext "Arms Dealer";
            
//case 10: jtext = "Car Dealer";
            
case 12jtext "Boxer";
            case 
14jtext "Drug Smuggler";
            
//case 15: jtext = "Paper Boy";
            //case 16: jtext = "Trucker";
            
case 17jtext "Taxi Driver";
            case 
18jtext "Craftman";
            case 
19jtext "Bartender";
            case 
20jtext "Trucker";
            case 
21jtext "Pizza Boy";
            default: 
jtext "None";
        }
        switch(
PlayerInfo[MAX_PLAYERS][pJob2])
        {
            case 
1jtext2 "Detective";
            case 
2jtext2 "Lawyer";
            case 
3jtext2 "Whore";
            case 
4jtext2 "Drugs Dealer";
            case 
5jtext2 "Car Jacker";
            
//case 6: jtext2 = "News Reporter";
            
case 7jtext2 "Car Mechanic";
            case 
8jtext2 "Bodyguard";
            case 
9jtext2 "Arms Dealer";
            
//case 10: jtext2 = "Car Dealer";
            
case 12jtext2 "Boxer";
            case 
14jtext2 "Drug Smuggler";
            
//case 15: jtext2 = "Paper Boy";
            //case 16: jtext2 = "Trucker";
            
case 17jtext2 "Taxi Driver";
//            case 18: jtext2 = "Crafsman";
            
case 19jtext2 "Bartender";
            case 
20jtext2 "Trucker";
            case 
21jtext2 "Pizza Boy";
            default: 
jtext2 "None";
        }
        new 
jlevel;
        switch(
PlayerInfo[MAX_PLAYERS][pJob])
        {
            case 
1:
            {
                    new 
skilllevel PlayerInfo[MAX_PLAYERS][pDetSkill];
                    if(
skilllevel >= && skilllevel <= 50) { jlevel 1; }
                    else if(
skilllevel >= 51 && skilllevel <= 100) { jlevel 2; }
                    else if(
skilllevel >= 101 && skilllevel <= 200) { jlevel 3; }
                    else if(
skilllevel >= 201 && skilllevel <= 400) { jlevel 4; }
                    else if(
skilllevel >= 401) { jlevel 5; }
            }
            case 
2:
            {
                    new 
skilllevel PlayerInfo[MAX_PLAYERS][pLawSkill];
                    if(
skilllevel >= && skilllevel <= 50) { jlevel 1; }
                    else if(
skilllevel >= 51 && skilllevel <= 100) { jlevel 2; }
                    else if(
skilllevel >= 101 && skilllevel <= 200) { jlevel 3; }
                    else if(
skilllevel >= 201 && skilllevel <= 400) { jlevel 4; }
                    else if(
skilllevel >= 401) { jlevel 5; }
            }
            case 
3:
            {
                    new 
skilllevel PlayerInfo[MAX_PLAYERS][pSexSkill];
                    if(
skilllevel >= && skilllevel <= 50) { jlevel 1; }
                    else if(
skilllevel >= 51 && skilllevel <= 100) { jlevel 2; }
                    else if(
skilllevel >= 101 && skilllevel <= 200) { jlevel 3; }
                    else if(
skilllevel >= 201 && skilllevel <= 400) { jlevel 4; }
                    else if(
skilllevel >= 401) { jlevel 5; }
            }
            case 
4:
            {
                    new 
skilllevel PlayerInfo[MAX_PLAYERS][pDrugsSkill];
                    if(
skilllevel >= && skilllevel <= 50) { jlevel 1; }
                    else if(
skilllevel >= 51 && skilllevel <= 100) { jlevel 2; }
                    else if(
skilllevel >= 101 && skilllevel <= 200) { jlevel 3; }
                    else if(
skilllevel >= 201 && skilllevel <= 400) { jlevel 4; }
                    else if(
skilllevel >= 401) { jlevel 5; }
            }
            case 
5:
            {
                    new 
skilllevel PlayerInfo[MAX_PLAYERS][pCarSkill];
                    if(
skilllevel >= && skilllevel <= 50) { jlevel 1; }
                    else if(
skilllevel >= 51 && skilllevel <= 100) { jlevel 2; }
                    else if(
skilllevel >= 101 && skilllevel <= 200) { jlevel 3; }
                    else if(
skilllevel >= 201 && skilllevel <= 400) { jlevel 4; }
                    else if(
skilllevel >= 401) { jlevel 5; }
            }
     
         case 7:
            {
                    new 
skilllevel PlayerInfo[MAX_PLAYERS][pMechSkill];
                    if(
skilllevel >= && skilllevel <= 50) { jlevel 1; }
                    else if(
skilllevel >= 51 && skilllevel <= 100) { jlevel 2; }
                    else if(
skilllevel >= 101 && skilllevel <= 200) { jlevel 3; }
                    else if(
skilllevel >= 201 && skilllevel <= 400) { jlevel 4; }
                    else if(
skilllevel >= 401) { jlevel 5; }
            }
            case 
9:
            {
                    new 
skilllevel PlayerInfo[MAX_PLAYERS][pArmsSkill];
                    if(
skilllevel >= && skilllevel 50) { jlevel 1; }
                    else if(
skilllevel >= 50 && skilllevel 100) { jlevel 2; }
                    else if(
skilllevel >= 100 && skilllevel 200) { jlevel 3; }
                    else if(
skilllevel >= 200 && skilllevel 400) { jlevel 4; }
                    else if(
skilllevel >= 400) { jlevel 5; }
            }
            case 
12:
            {
                    new 
skilllevel PlayerInfo[MAX_PLAYERS][pBoxSkill];
                    if(
skilllevel >= && skilllevel <= 50) { jlevel 1; }
                    else if(
skilllevel >= 51 && skilllevel <= 100) { jlevel 2; }
                    else if(
skilllevel >= 101 && skilllevel <= 200) { jlevel 3; }
                    else if(
skilllevel >= 201 && skilllevel <= 400) { jlevel 4; }
                    else if(
skilllevel >= 401) { jlevel 5; }
            }
            case 
14:
            {
                    new 
skilllevel PlayerInfo[MAX_PLAYERS][pSmugSkill];
                    if(
skilllevel >= && skilllevel <= 50) { jlevel 1; }
                    else if(
skilllevel >= 51 && skilllevel <= 100) { jlevel 2; }
                    else if(
skilllevel >= 101 && skilllevel <= 200) { jlevel 3; }
                    else if(
skilllevel >= 201 && skilllevel <= 400) { jlevel 4; }
                    else if(
skilllevel >= 401) { jlevel 5; }
            }
            case 
18:
            {
                    new 
skilllevel PlayerInfo[MAX_PLAYERS][pCraftSkill];
                    if(
skilllevel >= && skilllevel <= 50) { jlevel 1; }
                    else if(
skilllevel >= 51 && skilllevel <= 100) { jlevel 2; }
                    else if(
skilllevel >= 101 && skilllevel <= 200) { jlevel 3; }
                    else if(
skilllevel >= 201 && skilllevel <= 400) { jlevel 4; }
                    else if(
skilllevel >= 401) { jlevel 5; }
            }
            case 
20:
            {
                    new 
skilllevel PlayerInfo[MAX_PLAYERS][pTruckSkill];
                    if(
skilllevel >= && skilllevel <= 50) { jlevel 1; }
                    else if(
skilllevel >= 51 && skilllevel <= 100) { jlevel 2; }
                    else if(
skilllevel >= 101 && skilllevel <= 200) { jlevel 3; }
                    else if(
skilllevel >= 201 && skilllevel <= 400) { jlevel 4; }
                    else if(
skilllevel >= 401) { jlevel 5; }
            }
            default: 
jlevel 0;
        }
        
/*new jlevel2;
        switch(PlayerInfo[MAX_PLAYERS][pJob2])
        {
            case 1:
            {
                new skilllevel = PlayerInfo[MAX_PLAYERS][pDetSkill];
                if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
                else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
                else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
                else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
                else if(skilllevel >= 401) { jlevel2 = 5; }
            }
        }*/

        
new upgrade PlayerInfo[MAX_PLAYERS][gPupgrade];
        new 
Float:sarmor PlayerInfo[MAX_PLAYERS][pSarmor];

        new 
cash  PlayerInfo[MAX_PLAYERS][pCash];
        new 
bank PlayerInfo[MAX_PLAYERS][pBank];
        new 
totalwealth cash bank;

        new 
insur[20];
        switch(
PlayerInfo[MAX_PLAYERS][pInsurance])
        {
            case 
1insur "County General";
            case 
2insur "All Saints";
            default: 
insur "None";
        }

        new 
crimes PlayerInfo[MAX_PLAYERS][pCrimes];
        new 
arrests PlayerInfo[MAX_PLAYERS][pArrested];
        new 
wanted PlayerInfo[MAX_PLAYERS][pWantedLevel];

        new 
Float:healthFloat:armor;
        
health PlayerInfo[MAX_PLAYERS][pHealth];
        
armor PlayerInfo[MAX_PLAYERS][pArmor];

        new 
pot PlayerInfo[MAX_PLAYERS][pPot];
        new 
crack PlayerInfo[MAX_PLAYERS][pCrack];
        new 
packages PlayerInfo[MAX_PLAYERS][pPackages];
        new 
crates PlayerInfo[MAX_PLAYERS][pCrates];
        new 
radiofreq PlayerInfo[MAX_PLAYERS][pRadioFreq];

        new 
mats PlayerInfo[MAX_PLAYERS][pMats];
        new 
rope PlayerInfo[MAX_PLAYERS][pRope];
        new 
cigars PlayerInfo[MAX_PLAYERS][pCigar];
        new 
sprunk PlayerInfo[MAX_PLAYERS][pSprunk];
        new 
spray PlayerInfo[MAX_PLAYERS][pSpraycan];
        new 
bigfish PlayerInfo[MAX_PLAYERS][pBiggestFish];

        
// Eight line (admin only)
        
new house PlayerInfo[MAX_PLAYERS][pHouse];
        new 
business PlayerInfo[MAX_PLAYERS][pHouse];
        new 
eggs PlayerInfo[MAX_PLAYERS][pEggs];
        
//new house2 = PlayerInfo[MAX_PLAYERS][pHouse2];
        
new rent PlayerInfo[MAX_PLAYERS][pRenting];
        new 
interior PlayerInfo[MAX_PLAYERS][pInt];
        new 
vw PlayerInfo[MAX_PLAYERS][pVW];
        new 
realvw PlayerInfo[MAX_PLAYERS][pVW];
        new 
jtime PlayerInfo[MAX_PLAYERS][pJailTime];

        
// Added
        
new married[20];
        
strmid(marriedPlayerInfo[MAX_PLAYERS][pMarriedTo], 0strlen(PlayerInfo[MAX_PLAYERS][pMarriedTo]), 255);
        
//new screwdrivers = PlayerInfo[MAX_PLAYERS][pScrewdriver];
        
new reftokens PlayerInfo[MAX_PLAYERS][pRefTokens];
        new 
sext[16];
        if(
PlayerInfo[MAX_PLAYERS][pSex] == 1) { sext "Male"; } else { sext "Female"; }
        new 
age PlayerInfo[MAX_PLAYERS][pAge];

        new 
donatortxt[16];
        if(
PlayerInfo[MAX_PLAYERS][pDonator] == 0) { donatortxt "No"; }
        else if(
PlayerInfo[MAX_PLAYERS][pDonator] == 1) { donatortxt "Daisy Donator"; }
        else if(
PlayerInfo[MAX_PLAYERS][pDonator] == 2) { donatortxt "Rose Donator"; }
        else if(
PlayerInfo[MAX_PLAYERS][pDonator] == 3) { donatortxt "Ivy Donator"; }
        else { 
donatortxt "No"; }

        new 
nmutes PlayerInfo[MAX_PLAYERS][pNMuteTotal];
 
       new admutes PlayerInfo[MAX_PLAYERS][pADMuteTotal];
 
       new rmutes PlayerInfo[MAX_PLAYERS][pRMutedTotal];

        new 
adminlevel PlayerInfo[MAX_PLAYERS][pAdmin];
        new 
banned PlayerInfo[MAX_PLAYERS][pBanned];
        new 
permabanned PlayerInfo[MAX_PLAYERS][pPermaBanned];
        new 
disabled PlayerInfo[MAX_PLAYERS][pDisabled];

     
   SendClientMessage(playeridCOLOR_NEWS,"___________________________________________________________________________________________________");
     
   new coordsstring[128];
     
   format(coordsstringsizeof(coordsstring),"%s - (Level: %d) - (Playing hours: %d) - (Gender: %s) - (Age: %d) - (Phone number: %d) - (Warnings: %d)"paramslevelphourssextagepnumberwarns);
     
   SendClientMessage(playeridCOLOR_WHITEcoordsstring);
        
format(coordsstringsizeof(coordsstring),"(%s: %s) - (Rank: %s [%d]) - (Division: %s) - (Job: %s [lvl: %d]) - (Radio freq: %d kHz)"facgangemployerrankPlayerInfo[MAX_PLAYERS][pRank], divisionjtextjlevelradiofreq);
        
SendClientMessage(playeridCOLOR_FORSTATScoordsstring);
 
          format(coordsstringsizeof(coordsstring),"(Total wealth: $%d) - (Cash: $%d) - (Bank balance: $%d) - (Insurance: %s) - (Married to: %s)"totalwealthcashbankinsurmarried);
 
          SendClientMessage(playeridCOLOR_WHITEcoordsstring);
        
format(coordsstringsizeof(coordsstring),"(Respect points: %d/%d [$%d]) - (Upgrade Points: %d) - (Spawn armor: %.1f) - (Health: %.1f) - (Armor: %.1f)"respectexpamountcostlevelupgradesarmorhealtharmor);
        
SendClientMessage(playeridCOLOR_FORSTATScoordsstring);
 
          format(coordsstringsizeof(coordsstring),"(Crimes: %d) - (Arrested: %d times) - (Wanted Level: %d) - (Materials: %d) - (Pot: %d) - (Crack: %d) - (Packages: %d) - (Crates: %d)"crimesarrestswantedmatspotcrackpackagescrates);
 
          SendClientMessage(playeridCOLOR_WHITEcoordsstring);
 
          format(coordsstringsizeof(coordsstring),"(Rope: %d) - (Cigars: %d) - (Sprunk: %d) - (Spray: %d) -  (Biggest fish: %d) - (Referral Tokens: %d) - (Donator: %s)"ropecigarssprunkspraybigfishreftokensdonatortxt);
 
       SendClientMessage(playeridCOLOR_FORSTATScoordsstring);

        
format(coordsstringsizeof(coordsstring), "(Admin Level: %d) - (Banned: %d) - (Permabanned: %d) - (Account disabled: %d)"adminlevelbannedpermabanneddisabled);
 
         SendClientMessage(playeridCOLOR_WHITE,coordsstring);

        if(
PlayerInfo[playerid][pAdmin] >= 1)
        {
         
   format(coordsstringsizeof(coordsstring), "(House: %d) - (Renting: %d)- (Biz: %d) - (Int: %d) - (VW: %d) - (Real VW: %d) - (Jail: %d secs) - (Mutes: [N: %d] [AD: %d] [R: %d])"houserentbusiness,interiorvwrealvwjtimenmutesadmutesrmutes);
         
   SendClientMessage(playeridCOLOR_FORSTATS,coordsstring);
         
   format(coordsstringsizeof(coordsstring), "(MystEggs: %d)"eggs);
         
   SendClientMessage(playeridCOLOR_FORSTATS,coordsstring);

         
   /*if(PlayerInfo[MAX_PLAYERS][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] >= 4 && AdminDuty[playerid] == 1)
            {
                format(coordsstring, sizeof(coordsstring), "Accepted reports: %d | Trashed reports: %d", PlayerInfo[MAX_PLAYERS][pAcceptReport], PlayerInfo[MAX_PLAYERS][pTrashReport]);
                  SendClientMessage(playerid, COLOR_WHITE,coordsstring);
            }*/

     
       /*new tabbed[4];
            if(playerTabbedTime[MAX_PLAYERS] > 0) tabbed = "Yes";
            else tabbed = "No";

            new afk[4];
            if(playerAFK[MAX_PLAYERS] != 0 && playerAFKTime[MAX_PLAYERS] > 0) afk = "Yes";
            else afk = "No";

            format(coordsstring, sizeof(coordsstring), "(Alt-tabbed: %s [%d secs]) - (AFK: %s [%d secs])", tabbed, playerTabbedTime[MAX_PLAYERS], afk, playerAFKTime[MAX_PLAYERS]);
            SendClientMessage(playerid, COLOR_WHITE,coordsstring);*/
        
}
        
SendClientMessage(playeridCOLOR_NEWS,"___________________________________________________________________________________________________");
    }
    else
    {
        
SendClientMessage(playeridCOLOR_WHITE,"That account does not exist!");
    }
    return 
1;
}

You may edit it according to ur script... 
  Reply
#8
This command can set a player when he/she is offline.

CMD:alevel1(playerid,params[])
{
if(IsPlayerAdmin(playerid))
{
new tmp [256];
new Index;
tmp = strtok(params,Index);
if(sscanf(params, "s", tmp)) return SendClientMessage(playerid, -1, "{FF0000}USAGE: /alevel1 [Name]");
new adminname[MAX_PLAYER_NAME], string[128], unlbanname[256];
unlbanname = tmp;

if(udb_Exists(unlbanname))
{
dUserSetINT(unlbanname).("Level", 1);
GetPlayerName(playerid, adminname, sizeof(adminname));
CMDMessageToAdmins(playerid,"ALEVEL1");
print(string);
return 1;
}
else return SendClientMessage(playerid, red, "ERROR: No player with this name.");
}
else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command.");
}

You can add more levels.
Hope you like it
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)