02.12.2009, 17:09
Код:
public ShowCheck(playerid,targetid) { if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid)) { if(gPlayerLogged[targetid]) { new wstring[128]; new string[128]; new wstring2[128]; new lotto = PlayerInfo[targetid][pLottoNr]; new level = PlayerInfo[targetid][pLevel]; new exp = PlayerInfo[targetid][pExp]; new nxtlevel = PlayerInfo[targetid][pLevel]+1; new expamount = nxtlevel*levelexp; new drugs = PlayerInfo[targetid][pDrugs]; new mats = PlayerInfo[targetid][pMaterials]; new housekey = PlayerInfo[targetid][pHouseKey]; new bizkey = PlayerInfo[targetid][pBizKey]; new playinghours = PlayerInfo[targetid][pPlayingHours]; new bank = PlayerInfo[targetid][pBank]; new warnings = PlayerInfo[targetid][pWarnings]; new bombs = PlayerInfo[targetid][pBombs]; //////////////add add add new gps[128];// = PlayerInfo[targetid][pGps]; //////////////add add add new sex[128]; ////////////add add add new Float:hp; GetPlayerHealth(targetid,hp); new Float:armour; ////////////// add add add add add GetPlayerArmour(targetid,armour); ////////////// add add add add add new age = PlayerInfo[targetid][pAge]; new products = PlayerInfo[targetid][pProducts]; new donatortext[128]; new phonenumbertext[128]; new location[MAX_ZONE_NAME]; GetPlayer2DZone(playerid, location, MAX_ZONE_NAME); new phonenetwork[128]; new jobtext[128]; new weplicense[128]; new flylicense[128]; new carlicense[128]; new ranktext[256]; new mask[256]; /*new IP[MAX_PLAYERS]; GetPlayerIp(targetid, IP, sizeof(IP)); new Float:x, Float:y, Float:z, Float:a; GetPlayerPos(targetid, x, y, z); GetPlayerFacingAngle(targetid,a); new Country[256]; GetPlayerCountry(targetid,Country);*/ new vehnamesplit[3][24]; if(strcmp(PlayerVehicle[targetid][pVeh1], "None",true)) { split(PlayerVehicle[targetid][pVeh1], vehnamesplit, '.'); format(string, sizeof(string), "%s",vehnamesplit[1]); strmid(PlayerInfo[targetid][pCar1], string, 0, strlen(string), 255); } else { strmid(PlayerInfo[targetid][pCar1], "None", 0, strlen("None"), 255); } if(strcmp(PlayerVehicle[targetid][pVeh2], "None",true)) { split(PlayerVehicle[targetid][pVeh2], vehnamesplit, '.'); format(string, sizeof(string), "%s",vehnamesplit[1]); strmid(PlayerInfo[targetid][pCar2], string, 0, strlen(string), 255); } else { strmid(PlayerInfo[targetid][pCar2], "None", 0, strlen("None"), 255); } if(strcmp(PlayerVehicle[targetid][pVeh3], "None",true)) { split(PlayerVehicle[targetid][pVeh3], vehnamesplit, '.'); format(string, sizeof(string), "%s",vehnamesplit[1]); strmid(PlayerInfo[targetid][pCar3], string, 0, strlen(string), 255); } else { strmid(PlayerInfo[targetid][pCar3], "None", 0, strlen("None"), 255); } if(strcmp(PlayerVehicle[targetid][pVeh4], "None",true)) { split(PlayerVehicle[targetid][pVeh4], vehnamesplit, '.'); format(string, sizeof(string), "%s",vehnamesplit[1]); strmid(PlayerInfo[targetid][pCar4], string, 0, strlen(string), 255); } else { strmid(PlayerInfo[targetid][pCar4], "None", 0, strlen("None"), 255); } if(strcmp(PlayerVehicle[targetid][pVeh5], "None",true)) { split(PlayerVehicle[targetid][pVeh5], vehnamesplit, '.'); format(string, sizeof(string), "%s",vehnamesplit[1]); strmid(PlayerInfo[targetid][pCar5], string, 0, strlen(string), 255); } else { strmid(PlayerInfo[targetid][pCar5], "None", 0, strlen("None"), 255); } switch(PlayerInfo[targetid][pJob]) { case 0: jobtext = "None"; case 1: jobtext = "Arms Dealer"; case 2: jobtext = "Drug Dealer"; case 3: jobtext = "Detective"; case 4: jobtext = "Lawyer"; case 5: jobtext = "Products Seller"; } switch(PlayerInfo[targetid][pGps]) { case 0: gps = "No"; case 1: gps = "Yes"; } if (PlayerInfo[targetid][pMask] == 1 || maskmask[targetid] == 1) { mask = "Yes"; } else { mask = "No"; } switch(PlayerInfo[targetid][pSex]) { case 0: sex = "Unknown"; case 1: sex = "Male"; case 2: sex = "Female"; } switch(PlayerInfo[targetid][pDonator]) { case 0: donatortext = "No"; case 1: donatortext = "Yes"; } switch(PlayerInfo[targetid][pCarLic]) { case 0: carlicense = "No"; case 1: carlicense = "Yes"; } switch(PlayerInfo[targetid][pFlyLic]) { case 0: flylicense = "No"; case 1: flylicense = "Yes"; } switch(PlayerInfo[targetid][pWepLic]) { case 0: weplicense = "No"; case 1: weplicense = "Yes"; } if(PlayerInfo[targetid][pPhoneC] == 255) { phonenetwork = "None"; } else { format(phonenetwork, sizeof(phonenetwork), "%s",bizes[PlayerInfo[targetid][pPhoneC]][bizName]); } if(PlayerInfo[targetid][pPhoneNumber] == 0) { phonenumbertext = "None"; } else { format(phonenumbertext, sizeof(phonenumbertext), "%d",PlayerInfo[targetid][pPhoneNumber]); } format(wstring, sizeof(wstring), "Name: %s - Health: %.1f - Armour: %.1f - Cash: $%d - Level: %d - Experience: %d/%d - Materials: %d - Drugs: %d",GetPlayerNameEx(targetid),hp,armour,GetPlayerCash(targetid),level,exp,expamount,mats,drugs); SendClientMessage(playerid,COLOR_LIGHTBLUE, wstring); format(wstring, sizeof(wstring), "House Key: %d - Biz Key: %d - Location: %s - Bank: $%d - Warnings: %d - Age: %d - Sex: %s - LottoNr: %d", housekey,bizkey,location,bank,warnings,age,sex,lotto); SendClientMessage(playerid,COLOR_LIGHTBLUE, wstring); format(wstring, sizeof(wstring), "Playing Hours: %d - Phone Number: %s - Phone Network: %s - Donator: %s - Job: %s - Products: %d - GPS: %s - Bombs: %d", playinghours,phonenumbertext,phonenetwork,donatortext,jobtext,products,gps,bombs); SendClientMessage(playerid,COLOR_LIGHTBLUE, wstring); /*format(wstring, sizeof(wstring), "Driving License: %s - Flying License: %s - Weapon License: %s", carlicense, flylicense, weplicense); SendClientMessage(playerid,COLOR_LIGHTBLUE, wstring);*/ if(PlayerInfo[targetid][pFaction] != 255) { switch(PlayerInfo[targetid][pRank]) { case 1: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank1]); case 2: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank2]); case 3: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank3]); case 4: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank4]); case 5: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank5]); case 6: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank6]); case 7: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank7]); case 8: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank8]); case 9: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank9]); case 10: format(ranktext, sizeof(ranktext), "%s", DynamicFactions[PlayerInfo[targetid][pFaction]][fRank10]); } format(wstring, sizeof(wstring), "Driving License: %s - Flying License: %s - Weapon License: %s - Faction: %s - Rank: %s", carlicense,flylicense,weplicense,DynamicFactions[PlayerInfo[targetid][pFaction]][fName],ranktext); SendClientMessage(playerid,COLOR_LIGHTBLUE, wstring); } else { format(wstring, sizeof(wstring), "Driving License: %s - Flying License: %s - Weapon License: %s - Faction: None - Rank: None", carlicense,flylicense,weplicense); SendClientMessage(playerid,COLOR_LIGHTBLUE, wstring); } //SendClientMessage(playerid,COLOR_YELLOW,"____________________________________________________"); /////// ADMIN CHECK STATS format(wstring2, sizeof(wstring2), "Cash: $%d - Bank: $%d - Sex: %s - Age: %d - Job: %s - Materials: %d - Drugs: %d - Mask: %s",GetPlayerCash(targetid),bank,sex,age,jobtext,mats,drugs,mask); Textdraw0 = TextDrawCreate(144.000000,298.000000,wstring2); format(wstring2, sizeof(wstring2), "Level: %d - Experience: %d/%d - ID Card: %d - House: %d - Business: %d - Donator: %s - LottoNr: %d",level,exp,expamount,PlayerInfo[targetid][pIDnumber],housekey,bizkey,donatortext,PlayerInfo[targetid][pLottoNr]); Textdraw1 = TextDrawCreate(144.000000,311.000000,wstring2); format(wstring2, sizeof(wstring2), "Health: %.1f - Armour: %.1f - Location: %s - Warnings: %d - Phone Number: %s - Products: %d",hp,armour,location,warnings,phonenumbertext,products); Textdraw2 = TextDrawCreate(144.000000,324.000000,wstring2); format(wstring2, sizeof(wstring2), "Phone Network: %s - Driving License: %s - Flying License: %s - Weapon License: %s - MaskN: %d",phonenetwork,carlicense,flylicense,weplicense,PlayerInfo[targetid][pMnumber]); Textdraw3 = TextDrawCreate(144.000000,337.000000,wstring2); format(wstring2, sizeof(wstring2), "Faction: %s - Faction Rank: %s - GPS: %s - Bombs: %d - Car1: %s - Car2: %s - Car3: %s",DynamicFactions[PlayerInfo[targetid][pFaction]][fName],ranktext,gps,bombs,PlayerInfo[targetid][pCar1],PlayerInfo[targetid][pCar2],PlayerInfo[targetid][pCar3]); Textdraw4 = TextDrawCreate(144.000000,350.000000,wstring2); format(wstring2, sizeof(wstring2), "Car4: %s - Car5: %s - Gun1: %d - Ammo1: %d - Gun2: %d - Ammo2: %d - Gun3: %d - Ammo3: %d",PlayerInfo[targetid][pCar2],PlayerInfo[targetid][pCar3],PlayerInfo[targetid][pGun1],PlayerInfo[targetid][pAmmo1],PlayerInfo[targetid][pGun2],PlayerInfo[targetid][pAmmo2],PlayerInfo[targetid][pGun3],PlayerInfo[targetid][pAmmo3]); Textdraw5 = TextDrawCreate(144.000000,363.000000,wstring2); format(wstring2, sizeof(wstring2), "Gun4: %d - Ammo4: %d - Gun5: %d - Ammo5: %d - SkinID: %d - Interior: %d - Virtual World: %d - Ping: %d",PlayerInfo[targetid][pGun4],PlayerInfo[targetid][pAmmo4],PlayerInfo[targetid][pGun5],PlayerInfo[targetid][pAmmo5],PlayerInfo[targetid][pSkin],GetPlayerInterior(targetid),GetPlayerVirtualWorld(targetid),GetPlayerPing(targetid)); Textdraw6 = TextDrawCreate(144.000000,376.000000,wstring2); TextDrawAlignment(Textdraw0,0); TextDrawAlignment(Textdraw1,0); TextDrawAlignment(Textdraw2,0); TextDrawAlignment(Textdraw3,0); TextDrawAlignment(Textdraw4,0); TextDrawAlignment(Textdraw5,0); TextDrawAlignment(Textdraw6,0); TextDrawBackgroundColor(Textdraw0,0x000000ff); TextDrawBackgroundColor(Textdraw1,0x000000ff); TextDrawBackgroundColor(Textdraw2,0x000000ff); TextDrawBackgroundColor(Textdraw3,0x000000ff); TextDrawBackgroundColor(Textdraw4,0x000000ff); TextDrawBackgroundColor(Textdraw5,0x000000ff); TextDrawBackgroundColor(Textdraw6,0x000000ff); TextDrawFont(Textdraw0,1); TextDrawLetterSize(Textdraw0,0.199999,1.200000); TextDrawFont(Textdraw1,1); TextDrawLetterSize(Textdraw1,0.199999,1.300000); TextDrawFont(Textdraw2,1); TextDrawLetterSize(Textdraw2,0.199999,1.200000); TextDrawFont(Textdraw3,1); TextDrawLetterSize(Textdraw3,0.199999,1.200000); TextDrawFont(Textdraw4,1); TextDrawLetterSize(Textdraw4,0.199999,1.200000); TextDrawFont(Textdraw5,1); TextDrawLetterSize(Textdraw5,0.199999,1.200000); TextDrawFont(Textdraw6,1); TextDrawLetterSize(Textdraw6,0.199999,1.200000); TextDrawColor(Textdraw0,0xffffffff); TextDrawColor(Textdraw1,0xffffffff); TextDrawColor(Textdraw2,0xffffffff); TextDrawColor(Textdraw3,0xffffffff); TextDrawColor(Textdraw4,0xffffffff); TextDrawColor(Textdraw5,0xffffffff); TextDrawColor(Textdraw6,0xffffffff); TextDrawSetOutline(Textdraw0,1); TextDrawSetOutline(Textdraw1,1); TextDrawSetOutline(Textdraw2,1); TextDrawSetOutline(Textdraw3,1); TextDrawSetOutline(Textdraw4,1); TextDrawSetOutline(Textdraw5,1); TextDrawSetOutline(Textdraw6,1); TextDrawSetProportional(Textdraw0,1); TextDrawSetProportional(Textdraw1,1); TextDrawSetProportional(Textdraw2,1); TextDrawSetProportional(Textdraw3,1); TextDrawSetProportional(Textdraw4,1); TextDrawSetProportional(Textdraw5,1); TextDrawSetProportional(Textdraw6,1); TextDrawSetShadow(Textdraw0,1); TextDrawSetShadow(Textdraw1,1); TextDrawSetShadow(Textdraw2,1); TextDrawSetShadow(Textdraw3,1); TextDrawSetShadow(Textdraw4,1); TextDrawSetShadow(Textdraw5,1); TextDrawSetShadow(Textdraw6,1); /*TextDrawHideForAll(Textdraw6); TextDrawHideForAll(Textdraw5); TextDrawHideForAll(Textdraw4); TextDrawHideForAll(Textdraw3); TextDrawHideForAll(Textdraw2); TextDrawHideForAll(Textdraw1); TextDrawHideForAll(Textdraw0);*/ TextDrawShowForPlayer(playerid, Textdraw6); TextDrawShowForPlayer(playerid, Textdraw5); TextDrawShowForPlayer(playerid, Textdraw4); TextDrawShowForPlayer(playerid, Textdraw3); TextDrawShowForPlayer(playerid, Textdraw2); TextDrawShowForPlayer(playerid, Textdraw1); TextDrawShowForPlayer(playerid, Textdraw0); ///// ADMIN CHECK STATS END } } }
Does someone know whats the problem here?