Max vehicles a player can own
#7

What do you mean by "illimited"? Anyways, we need all the help we can get. Here's my /stats command
pawn Код:
CMD:stats(playerid, params[])
{
    if(!IsPlayerLoggedIn(playerid) || PlayerInfo[playerid][pAsshole] == 1) return SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use command.");
    ShowStats(playerid, playerid);
    return 1;
}
My "stock ShowStats"
pawn Код:
stock ShowStats(playerid, playerb)
{
    new string[256], gender[8], Float:H, Float:A;
    // Gender
    if(PlayerInfo[playerb][pGender] == 1) format(gender, sizeof(gender), "Male");
    else if(PlayerInfo[playerb][pGender] == 2) format(gender, sizeof(gender), "Female");
    // Health and Armor
    GetPlayerHealth(playerb, H); GetPlayerArmour(playerb, A);
    // Total Wealth
    //new idx = PlayerInfo[playerb][pHouse];
    //new idx2 = PlayerInfo[playerb][pBiz];
    //new TotalWealth = PlayerInfo[playerb][pMoney]+PlayerInfo[playerb][pBank]+HouseInfo[idx][hMoney]+BizInfo[idx2][bMoney];
    // Loyal
    new loyal[4];
    if(!PlayerInfo[playerb][pLoyal]) format(loyal, sizeof(loyal), "Yes");
    if(PlayerInfo[playerb][pLoyal]) format(loyal, sizeof(loyal), "No");
    // Oldskool
    new oldskool[4];
    if(PlayerInfo[playerid][pHours] >= 248) format(oldskool, sizeof(oldskool), "Yes");
    else if(PlayerInfo[playerid][pHours] < 248) format(oldskool, sizeof(oldskool), "No");
    //fac-fam rank
    new rank[128];
    if(PlayerInfo[playerb][pFac] >= 1) format(rank, sizeof(rank), "%s", RPFRN(playerb));
    else if(PlayerInfo[playerb][pFam] >=1) format(rank, sizeof(rank), "%s", RPFaRN(playerb));
    else format(rank, sizeof(rank), "None");
    //fac-fam
    new org[128];
    if(PlayerInfo[playerb][pFac] >= 1) format(org, sizeof(org), "%s", RPFNEx(playerb));
    else if(PlayerInfo[playerb][pFam] >=1) format(org, sizeof(org), "%s", RPFaN(playerb));
    else format(org, sizeof(org), "None");
    //
    new exp = PlayerInfo[playerb][pExp];
    new nxtlevel = PlayerInfo[playerb][pLevel]+1;
    new expamount = nxtlevel*4;
    /*//respect
    new respectneed[4];
    if(PlayerInfo[playerb][pLevel] == 1) format(respectneed, sizeof(respectneed), "4");
    else if(PlayerInfo[playerb][pLevel] == 2) format(respectneed, sizeof(respectneed), "10");
    else if(PlayerInfo[playerb][pLevel] == 3) format(respectneed, sizeof(respectneed), "18");
    else if(PlayerInfo[playerb][pLevel] == 4) format(respectneed, sizeof(respectneed), "30");
    else if(PlayerInfo[playerb][pLevel] == 5) format(respectneed, sizeof(respectneed), "42");
    else if(PlayerInfo[playerb][pLevel] == 6) format(respectneed, sizeof(respectneed), "54");
    else if(PlayerInfo[playerb][pLevel] == 7) format(respectneed, sizeof(respectneed), "70");
    else if(PlayerInfo[playerb][pLevel] == 8) format(respectneed, sizeof(respectneed), "88");
    else if(PlayerInfo[playerb][pLevel] == 9) format(respectneed, sizeof(respectneed), "108");
    else if(PlayerInfo[playerb][pLevel] == 10) format(respectneed, sizeof(respectneed), "130");
    else if(PlayerInfo[playerb][pLevel] == 11) format(respectneed, sizeof(respectneed), "154");
    else if(PlayerInfo[playerb][pLevel] == 12) format(respectneed, sizeof(respectneed), "180");
    else if(PlayerInfo[playerb][pLevel] == 13) format(respectneed, sizeof(respectneed), "208");
    else if(PlayerInfo[playerb][pLevel] == 14) format(respectneed, sizeof(respectneed), "238");
    else if(PlayerInfo[playerb][pLevel] == 15) format(respectneed, sizeof(respectneed), "270");
    else if(PlayerInfo[playerb][pLevel] == 16) format(respectneed, sizeof(respectneed), "304");
    else if(PlayerInfo[playerb][pLevel] == 17) format(respectneed, sizeof(respectneed), "340");
    else if(PlayerInfo[playerb][pLevel] == 18) format(respectneed, sizeof(respectneed), "378");
    else if(PlayerInfo[playerb][pLevel] == 19) format(respectneed, sizeof(respectneed), "418");
    else if(PlayerInfo[playerb][pLevel] == 20) format(respectneed, sizeof(respectneed), "460");
    else if(PlayerInfo[playerb][pLevel] == 21) format(respectneed, sizeof(respectneed), "504");
    else if(PlayerInfo[playerb][pLevel] == 22) format(respectneed, sizeof(respectneed), "550");
    else if(PlayerInfo[playerb][pLevel] == 23) format(respectneed, sizeof(respectneed), "598");
    else if(PlayerInfo[playerb][pLevel] == 24) format(respectneed, sizeof(respectneed), "648");
    else if(PlayerInfo[playerb][pLevel] == 25) format(respectneed, sizeof(respectneed), "700");
    else if(PlayerInfo[playerb][pLevel] == 26) format(respectneed, sizeof(respectneed), "754");
    else if(PlayerInfo[playerb][pLevel] == 27) format(respectneed, sizeof(respectneed), "810");
    else if(PlayerInfo[playerb][pLevel] == 28) format(respectneed, sizeof(respectneed), "868");
    else if(PlayerInfo[playerb][pLevel] == 29) format(respectneed, sizeof(respectneed), "928");*/

    //new average = (PlayerInfo[playerb][pTMinutes] / PlayerInfo[playerb][pDay]);
    // Stats
    format(string, sizeof(string), " Statistics of %s", RPN(playerb));
    SendClientMessage(playerid, COLOR_ORANGE, string);
    format(string, sizeof(string), "Level: [%d] - Gender: [%s] - Age: [%d] - Money: [$%d] - Bank: [$%d] - Health: [%0.1f] - Armor: [%0.1f]", PlayerInfo[playerb][pLevel], gender, PlayerInfo[playerb][pAge], PlayerInfo[playerb][pMoney], PlayerInfo[playerb][pBank], H, A);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    format(string, sizeof(string), "Phone Number: [%d] - Playing Hours: [%d] Next Level: [%d/%d] - Respect Points: [%d]", PlayerInfo[playerb][pNumber], PlayerInfo[playerb][pHours], exp, expamount, PlayerInfo[playerb][pExp]);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    format(string, sizeof(string), "Occupation: [%s] - Wanted Level: [%d] - Crimes Committed: [%d] - Arrested: [%dx] - Kill: [%d] - Death: [%d]", RPJN(playerb), PlayerInfo[playerb][pWanted], PlayerInfo[playerb][pCrimes], PlayerInfo[playerb][pArrested], PlayerInfo[playerb][pKill], PlayerInfo[playerb][pDeath]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "Gas Can: [%d litres] - Materials: [%d]- Weed: [%d] - Cocaine: [%d] - Cigarettes: [%d] - Sprays: [%d] - Ropes: [%d] - Blindfolds: [%d]", PlayerInfo[playerb][pGas], PlayerInfo[playerb][pMaterials], PlayerInfo[playerb][pWeed], PlayerInfo[playerb][pcocaine], PlayerInfo[playerb][pCigar], PlayerInfo[playerb][pSpray], PlayerInfo[playerb][pRope], PlayerInfo[playerb][pBlindfold]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), "Organization: [%s] - Rank: [%s] - Gates: 1[ID %s] - 2[ID %s] - 3[ID %s] - VIP:[%s]", org, rank, RPGAK1(playerb), RPGAK2(playerb), RPGAK3(playerb), RPVIPN(playerb));
    SendClientMessage(playerid, COLOR_RADIO, string);
    format(string, sizeof(string), "Job 1: [%s] - Job 2: [%s]", JOBN(playerb), VJOBN(playerb));
    SendClientMessage(playerid, COLOR_RADIO, string);
    format(string, sizeof(string), "Business: [%s] - Business: 2 [%s] House: [%s] - Garage: [%s] - Vehicles: 1[%s (ID:%d) - 2[%s (ID:%d)]", RBT(PlayerInfo[playerb][pBiz]), RBT(PlayerInfo[playerb][pVBiz]), RPHK(playerb), RPGK(playerb), RVN(GetVehicleModel(PlayerInfo[playerb][pVeh])), PlayerInfo[playerb][pVeh], RVN(GetVehicleModel(PlayerInfo[playerb][pVVeh])), PlayerInfo[playerb][pVVeh]);
    SendClientMessage(playerid, COLOR_RADIO, string);
    return 1;
}
Reply


Messages In This Thread
Max vehicles a player can own - by NealPeteros - 05.07.2016, 08:42
Re: Max vehicles a player can own - by Rdx - 05.07.2016, 08:44
Re: Max vehicles a player can own - by NealPeteros - 05.07.2016, 08:46
Re: Max vehicles a player can own - by Rdx - 05.07.2016, 08:48
Re: Max vehicles a player can own - by NealPeteros - 05.07.2016, 08:49
Re: Max vehicles a player can own - by Eymeric69 - 05.07.2016, 08:50
Re: Max vehicles a player can own - by NealPeteros - 05.07.2016, 08:54
Re: Max vehicles a player can own - by Dayrion - 05.07.2016, 09:07
Re: Max vehicles a player can own - by NealPeteros - 05.07.2016, 09:11
Re: Max vehicles a player can own - by NealPeteros - 05.07.2016, 09:39

Forum Jump:


Users browsing this thread: 1 Guest(s)