Jump to content

tagarta

Membru
  • Posts

    23
  • Joined

  • Last visited

    Never

About tagarta

  • Birthday 06/14/1996

tagarta's Achievements

Contributor

Contributor (5/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Daca ai putea sa imi explici cat de cat cum pot face asta, ar fi super. Nu sunt tocmai un as in pawno :-(
  2. Am uitat sa precizez. gamemodul ruleaza pe MySQL. OnPlayerSpawn [pawn]public OnPlayerSpawn(playerid) { new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); UpdateGangZones(); TextDrawHideForPlayer(playerid, Bara1); TextDrawHideForPlayer(playerid, Bara2); TextDrawHideForPlayer(playerid, RGLogin[0]); TextDrawHideForPlayer(playerid, RGLogin[1]); TextDrawHideForPlayer(playerid, RGLogin[2]); TextDrawShowForPlayer(playerid, Date); TextDrawShowForPlayer(playerid, CeasClock); TogglePlayerSpectating(playerid,0); AntiDeAMX(); STDPlayer[playerid] = 0; TextDrawShowForPlayer(playerid,LogoJOS[0]); TextDrawShowForPlayer(playerid,LogoJOS[1]); if(TurfInfo[1][tOwned] == 5) GangZoneShowForPlayer(playerid, Gangzone[0], 0x415575AA); else if(TurfInfo[1][tOwned] == 10) GangZoneShowForPlayer(playerid, Gangzone[0], 0x7D4155AA); else if(TurfInfo[1][tOwned] == 11) GangZoneShowForPlayer(playerid, Gangzone[0], 0x7D4155AA); else if(TurfInfo[1][tOwned] == 12) GangZoneShowForPlayer(playerid, Gangzone[0], 0x415575AA); if(TurfInfo[2][tOwned] == 5) GangZoneShowForPlayer(playerid, Gangzone[1], 0x415575AA); else if(TurfInfo[2][tOwned] == 10) GangZoneShowForPlayer(playerid, Gangzone[1], 0x7D4155AA); else if(TurfInfo[2][tOwned] == 11) GangZoneShowForPlayer(playerid, Gangzone[1], 0x7D4155AA); else if(TurfInfo[2][tOwned] == 12) GangZoneShowForPlayer(playerid, Gangzone[1], 0x415575AA); if(TurfInfo[3][tOwned] == 5) GangZoneShowForPlayer(playerid, Gangzone[2], 0x415575AA); else if(TurfInfo[3][tOwned] == 10) GangZoneShowForPlayer(playerid, Gangzone[2], 0x7D4155AA); else if(TurfInfo[3][tOwned] == 11) GangZoneShowForPlayer(playerid, Gangzone[2], 0x7D4155AA); else if(TurfInfo[3][tOwned] == 12) GangZoneShowForPlayer(playerid, Gangzone[2], 0x415575AA); if(TurfInfo[4][tOwned] == 5) GangZoneShowForPlayer(playerid, Gangzone[3], 0x415575AA); else if(TurfInfo[4][tOwned] == 10) GangZoneShowForPlayer(playerid, Gangzone[3], 0x7D4155AA); else if(TurfInfo[4][tOwned] == 11) GangZoneShowForPlayer(playerid, Gangzone[3], 0x7D4155AA); else if(TurfInfo[4][tOwned] == 12) GangZoneShowForPlayer(playerid, Gangzone[3], 0x415575AA); if(TurfInfo[5][tOwned] == 5) GangZoneShowForPlayer(playerid, Gangzone[4], 0x415575AA); else if(TurfInfo[5][tOwned] == 10) GangZoneShowForPlayer(playerid, Gangzone[4], 0x7D4155AA); else if(TurfInfo[5][tOwned] == 11) GangZoneShowForPlayer(playerid, Gangzone[4], 0x7D4155AA); else if(TurfInfo[5][tOwned] == 12) GangZoneShowForPlayer(playerid, Gangzone[4], 0x415575AA); if(TurfInfo[6][tOwned] == 5) GangZoneShowForPlayer(playerid, Gangzone[5], 0x415575AA); else if(TurfInfo[6][tOwned] == 10) GangZoneShowForPlayer(playerid, Gangzone[5], 0x7D4155AA); else if(TurfInfo[6][tOwned] == 11) GangZoneShowForPlayer(playerid, Gangzone[5], 0x7D4155AA); else if(TurfInfo[6][tOwned] == 12) GangZoneShowForPlayer(playerid, Gangzone[5], 0x415575AA); if(TurfInfo[7][tOwned] == 5) GangZoneShowForPlayer(playerid, Gangzone[6], 0x415575AA); else if(TurfInfo[7][tOwned] == 10) GangZoneShowForPlayer(playerid, Gangzone[6], 0x7D4155AA); else if(TurfInfo[7][tOwned] == 11) GangZoneShowForPlayer(playerid, Gangzone[6], 0x7D4155AA); else if(TurfInfo[7][tOwned] == 12) GangZoneShowForPlayer(playerid, Gangzone[6], 0x415575AA); if(TurfInfo[8][tOwned] == 5) GangZoneShowForPlayer(playerid, Gangzone[7], 0x415575AA); else if(TurfInfo[8][tOwned] == 10) GangZoneShowForPlayer(playerid, Gangzone[7], 0x7D4155AA); else if(TurfInfo[8][tOwned] == 11) GangZoneShowForPlayer(playerid, Gangzone[7], 0x7D4155AA); else if(TurfInfo[8][tOwned] == 12) GangZoneShowForPlayer(playerid, Gangzone[7], 0x415575AA); if(TurfInfo[9][tOwned] == 5) GangZoneShowForPlayer(playerid, Gangzone[8], 0x415575AA); else if(TurfInfo[9][tOwned] == 10) GangZoneShowForPlayer(playerid, Gangzone[8], 0x7D4155AA); else if(TurfInfo[9][tOwned] == 11) GangZoneShowForPlayer(playerid, Gangzone[8], 0x7D4155AA); else if(TurfInfo[9][tOwned] == 12) GangZoneShowForPlayer(playerid, Gangzone[8], 0x415575AA); if(TurfInfo[10][tOwned] == 5) GangZoneShowForPlayer(playerid, Gangzone[9], 0x415575AA); else if(TurfInfo[10][tOwned] == 10) GangZoneShowForPlayer(playerid, Gangzone[9], 0x7D4155AA); else if(TurfInfo[10][tOwned] == 11) GangZoneShowForPlayer(playerid, Gangzone[9], 0x7D4155AA); else if(TurfInfo[10][tOwned] == 12) GangZoneShowForPlayer(playerid, Gangzone[9], 0x415575AA); if(TurfInfo[11][tOwned] == 5) GangZoneShowForPlayer(playerid, Gangzone[10], 0x415575AA); else if(TurfInfo[11][tOwned] == 10) GangZoneShowForPlayer(playerid, Gangzone[10], 0x7D4155AA); else if(TurfInfo[11][tOwned] == 11) GangZoneShowForPlayer(playerid, Gangzone[10], 0x7D4155AA); else if(TurfInfo[11][tOwned] == 12) GangZoneShowForPlayer(playerid, Gangzone[10], 0x415575AA); if(TurfInfo[12][tOwned] == 5) GangZoneShowForPlayer(playerid, Gangzone[11], 0x415575AA); else if(TurfInfo[12][tOwned] == 10) GangZoneShowForPlayer(playerid, Gangzone[11], 0x7D4155AA); else if(TurfInfo[12][tOwned] == 11) GangZoneShowForPlayer(playerid, Gangzone[11], 0x7D4155AA); else if(TurfInfo[12][tOwned] == 12) GangZoneShowForPlayer(playerid, Gangzone[11], 0x415575AA); if(TurfInfo[13][tOwned] == 5) GangZoneShowForPlayer(playerid, Gangzone[12], 0x415575AA); else if(TurfInfo[13][tOwned] == 10) GangZoneShowForPlayer(playerid, Gangzone[12], 0x7D4155AA); else if(TurfInfo[13][tOwned] == 11) GangZoneShowForPlayer(playerid, Gangzone[12], 0x7D4155AA); else if(TurfInfo[13][tOwned] == 12) GangZoneShowForPlayer(playerid, Gangzone[12], 0x415575AA); if(TurfInfo[14][tOwned] == 5) GangZoneShowForPlayer(playerid, Gangzone[13], 0x415575AA); else if(TurfInfo[14][tOwned] == 10) GangZoneShowForPlayer(playerid, Gangzone[13], 0x7D4155AA); else if(TurfInfo[14][tOwned] == 11) GangZoneShowForPlayer(playerid, Gangzone[13], 0x7D4155AA); else if(TurfInfo[14][tOwned] == 12) GangZoneShowForPlayer(playerid, Gangzone[13], 0x415575AA); if(TurfInfo[15][tOwned] == 5) GangZoneShowForPlayer(playerid, Gangzone[14], 0x415575AA); else if(TurfInfo[15][tOwned] == 10) GangZoneShowForPlayer(playerid, Gangzone[14], 0x7D4155AA); else if(TurfInfo[15][tOwned] == 11) GangZoneShowForPlayer(playerid, Gangzone[14], 0x7D4155AA); else if(TurfInfo[15][tOwned] == 12) GangZoneShowForPlayer(playerid, Gangzone[14], 0x415575AA); if(TurfInfo[16][tOwned] == 5) GangZoneShowForPlayer(playerid, Gangzone[15], 0x415575AA); else if(TurfInfo[16][tOwned] == 10) GangZoneShowForPlayer(playerid, Gangzone[15], 0x7D4155AA); else if(TurfInfo[16][tOwned] == 11) GangZoneShowForPlayer(playerid, Gangzone[15], 0x7D4155AA); else if(TurfInfo[16][tOwned] == 12) GangZoneShowForPlayer(playerid, Gangzone[15], 0x415575AA); if(TurfInfo[17][tOwned] == 5) GangZoneShowForPlayer(playerid, Gangzone[16], 0x415575AA); else if(TurfInfo[17][tOwned] == 10) GangZoneShowForPlayer(playerid, Gangzone[16], 0x7D4155AA); else if(TurfInfo[17][tOwned] == 11) GangZoneShowForPlayer(playerid, Gangzone[16], 0x7D4155AA); else if(TurfInfo[17][tOwned] == 12) GangZoneShowForPlayer(playerid, Gangzone[16], 0x415575AA); if(TurfInfo[18][tOwned] == 5) GangZoneShowForPlayer(playerid, Gangzone[17], 0x415575AA); else if(TurfInfo[18][tOwned] == 10) GangZoneShowForPlayer(playerid, Gangzone[17], 0x7D4155AA); else if(TurfInfo[18][tOwned] == 11) GangZoneShowForPlayer(playerid, Gangzone[17], 0x7D4155AA); else if(TurfInfo[18][tOwned] == 12) GangZoneShowForPlayer(playerid, Gangzone[17], 0x415575AA); gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team if (gTeam[playerid] == 4) //medic / criminal reset team { gTeam[playerid] = 3; } if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, 0xC90000FF, "BadGame: {FFFFFF}Acest server cere logare pe urma alegerea caracterului. {FF0000}AI PRIMIT KICK!{FFFFFF}"); KickPlayer[playerid] = 1; } if(PlayerInfo[playerid][pJailed] > 0) { new celula = random(5); if(celula == 1) { TogglePlayerControllable(playerid, 0); SetTimerEx("UnfreezePlayerTime", 3000, false, "d", playerid); SetPlayerPos(playerid, 901.3228,-1275.4541,1474.5554); SetPlayerFacingAngle(playerid, 182.6906); SetPlayerInterior(playerid, 1); SendClientMessage(playerid, COLOR_WHITE, "{C90000}Info: {FFFFFF}Timpul de inchisoare nu este ispasit, treci inapoi."); return 1; } if(celula == 2) { TogglePlayerControllable(playerid, 0); SetTimerEx("UnfreezePlayerTime", 3000, false, "d", playerid); SetPlayerPos(playerid, 896.8344,-1275.5319,1474.5554); SetPlayerFacingAngle(playerid, 179.9750); SetPlayerInterior(playerid, 1); SendClientMessage(playerid, COLOR_WHITE, "{C90000}Info: {FFFFFF}Timpul de inchisoare nu este ispasit, treci inapoi."); return 1; } if(celula == 3) { TogglePlayerControllable(playerid, 0); SetTimerEx("UnfreezePlayerTime", 3000, false, "d", playerid); SetPlayerPos(playerid, 892.2840,-1275.7642,1474.5554); SetPlayerFacingAngle(playerid, 181.6044); SetPlayerInterior(playerid, 1); SendClientMessage(playerid, COLOR_WHITE, "{C90000}Info: {FFFFFF}Timpul de inchisoare nu este ispasit, treci inapoi."); return 1; } if(celula == 4) { TogglePlayerControllable(playerid, 0); SetTimerEx("UnfreezePlayerTime", 3000, false, "d", playerid); SetPlayerPos(playerid, 887.9484,-1275.5062,1474.5554); SetPlayerFacingAngle(playerid, 181.0612); SetPlayerInterior(playerid, 1); SendClientMessage(playerid, COLOR_WHITE, "{C90000}Info: {FFFFFF}Timpul de inchisoare nu este ispasit, treci inapoi."); return 1; } else { TogglePlayerControllable(playerid, 0); SetTimerEx("UnfreezePlayerTime", 3000, false, "d", playerid); SetPlayerPos(playerid, 883.5203,-1275.6064,1474.5554); SetPlayerFacingAngle(playerid, 181.0612); SetPlayerInterior(playerid, 1); SendClientMessage(playerid, COLOR_WHITE, "{C90000}Info: {FFFFFF}Timpul de inchisoare nu este ispasit, treci inapoi."); return 1; } } if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3) { SetPlayerToTeamColor(playerid); gTeam[playerid] = 2; PlayerInfo[playerid][pTeam] = 2; SetPlayerTeam(playerid, 2); SetPlayerTeam(playerid, 2); } if(PlayerInfo[playerid][pChar] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]); } else { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); } if(IsAPlayerFaction(playerid)) { if(IsPlayerConnected(playerid)) { SetTimerEx("RespawnPlayerTime", 300,0,"i",playerid); return 1; } } SetPlayerWeapons(playerid); SetPlayerSpawn(playerid); SetPlayerToTeamColor(playerid); PlayerFixRadio(playerid); return 1; } //------------------------------------------------------------------------------[/pawn] OnPlayerConnect [pawn]//------------------------------------------------------------------------------------------------------ public OnPlayerConnect(playerid) { new ConnIP[16]; GetPlayerIp(playerid,ConnIP,16); new compare_IP[16]; new number_IP = 0; for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GetPlayerIp(i,compare_IP,16); if(!strcmp(compare_IP,ConnIP)) number_IP++; } } if((GetTickCount() - Join_Stamp) < Time_Limit) exceed=1; else exceed=0; if(strcmp(ban_s, ConnIP, false) == 0 && exceed == 1 ) { Same_IP++; if(Same_IP > SAME_IP_CONNECT) { Ban(playerid); Same_IP=0; } } else { Same_IP=0; } if(number_IP > IP_LIMIT) Kick(playerid); GetStampIP(playerid); // HQ Spawn Civil RemoveBuildingForPlayer(playerid, 1283, 1553.9844, -1873.0703, 15.6250, 0.25); RemoveBuildingForPlayer(playerid, 5058, 1457.5625, -1895.9297, 22.1328, 0.25); RemoveBuildingForPlayer(playerid, 642, 1561.7969, -1894.7578, 13.7578, 0.25); RemoveBuildingForPlayer(playerid, 643, 1561.8203, -1894.7188, 12.8672, 0.25); RemoveBuildingForPlayer(playerid, 625, 1566.1797, -1893.1016, 13.2109, 0.25); RemoveBuildingForPlayer(playerid, 625, 1573.4531, -1893.1016, 13.2109, 0.25); RemoveBuildingForPlayer(playerid, 642, 1573.9766, -1894.8281, 13.7578, 0.25); RemoveBuildingForPlayer(playerid, 643, 1574.0000, -1894.7891, 12.8672, 0.25); RemoveBuildingForPlayer(playerid, 642, 1561.7969, -1889.8906, 13.7578, 0.25); RemoveBuildingForPlayer(playerid, 643, 1561.8203, -1889.8594, 12.8672, 0.25); RemoveBuildingForPlayer(playerid, 625, 1566.1797, -1887.3438, 13.2109, 0.25); RemoveBuildingForPlayer(playerid, 642, 1561.6250, -1884.8672, 13.7578, 0.25); RemoveBuildingForPlayer(playerid, 643, 1561.6484, -1884.8281, 12.8672, 0.25); RemoveBuildingForPlayer(playerid, 625, 1573.4531, -1887.3438, 13.2109, 0.25); RemoveBuildingForPlayer(playerid, 643, 1574.0000, -1889.9453, 12.8672, 0.25); RemoveBuildingForPlayer(playerid, 642, 1573.9766, -1889.9844, 13.7578, 0.25); RemoveBuildingForPlayer(playerid, 642, 1574.0156, -1884.9531, 13.7578, 0.25); RemoveBuildingForPlayer(playerid, 643, 1574.0391, -1884.9219, 12.8672, 0.25); // School Instructor RemoveBuildingForPlayer(playerid, 1261, 2445.2031, -1519.3906, 37.0547, 0.25); RemoveBuildingForPlayer(playerid, 1308, 2491.8281, -1516.5078, 23.2109, 0.25); RemoveBuildingForPlayer(playerid, 760, 2495.1563, -1549.7500, 23.3359, 0.25); RemoveBuildingForPlayer(playerid, 760, 2494.2109, -1521.6094, 23.3359, 0.25); RemoveBuildingForPlayer(playerid, 760, 2494.0078, -1529.2188, 23.3359, 0.25); RemoveBuildingForPlayer(playerid, 17916, 2366.8125, -1537.5391, 39.4688, 0.25); RemoveBuildingForPlayer(playerid, 1308, 2442.9922, -1559.0781, 23.2109, 0.25); RemoveBuildingForPlayer(playerid, 760, 2446.1563, -1562.2031, 23.3359, 0.25); RemoveBuildingForPlayer(playerid, 760, 2467.7969, -1562.2031, 23.3359, 0.25); RemoveBuildingForPlayer(playerid, 1297, 2459.2656, -1558.7266, 26.2031, 0.25); RemoveBuildingForPlayer(playerid, 760, 2444.6797, -1542.7813, 23.2031, 0.25); RemoveBuildingForPlayer(playerid, 620, 2457.0156, -1542.6953, 21.8047, 0.25); RemoveBuildingForPlayer(playerid, 760, 2463.7344, -1542.7813, 23.2031, 0.25); RemoveBuildingForPlayer(playerid, 17863, 2467.4609, -1538.2500, 27.6016, 0.25); RemoveBuildingForPlayer(playerid, 1297, 2482.9297, -1530.5391, 26.3047, 0.25); RemoveBuildingForPlayer(playerid, 1267, 2445.2031, -1519.3906, 37.0547, 0.25); RemoveBuildingForPlayer(playerid, 1297, 2474.6328, -1518.7734, 26.3047, 0.25); RemoveBuildingForPlayer(playerid, 1525, 2462.2656, -1541.4141, 25.4219, 0.25); // Varios Los Aztecas RemoveBuildingForPlayer(playerid, 727, 966.6406, -905.5078, 44.1016, 0.25); // School Instructor RemoveBuildingForPlayer(playerid, 1308, 2071.9844, -1922.1250, 11.6016, 0.25); // NATIONAL GUARD RemoveBuildingForPlayer(playerid, 1294, 1507.9375, -1444.8984, 17.0234, 0.25); RemoveBuildingForPlayer(playerid, 1265, 1539.2344, -1481.0781, 8.9141, 0.25); RemoveBuildingForPlayer(playerid, 1265, 1536.5078, -1481.0938, 8.9531, 0.25); RemoveBuildingForPlayer(playerid, 1372, 1534.9297, -1480.9922, 8.6094, 0.25); RemoveBuildingForPlayer(playerid, 1265, 1537.2422, -1479.7422, 8.9453, 0.25); RemoveBuildingForPlayer(playerid, 1372, 1537.9297, -1480.6094, 8.6094, 0.25); // Taxi MAPA RemoveBuildingForPlayer(playerid, 1226, 1806.4297, -1931.6016, 16.3750, 0.25); RemoveBuildingForPlayer(playerid, 1226, 1774.7578, -1901.5391, 16.3750, 0.25); // PECO RemoveBuildingForPlayer(playerid, 5849, 1046.6797, -935.1953, 46.9922, 0.25); RemoveBuildingForPlayer(playerid, 5854, 992.5313, -962.7344, 60.7813, 0.25); RemoveBuildingForPlayer(playerid, 1266, 1029.1797, -939.5156, 52.7500, 0.25); RemoveBuildingForPlayer(playerid, 727, 972.0781, -936.7813, 40.4375, 0.25); RemoveBuildingForPlayer(playerid, 727, 966.6406, -905.5078, 44.1016, 0.25); RemoveBuildingForPlayer(playerid, 717, 953.4375, -939.4141, 41.8828, 0.25); RemoveBuildingForPlayer(playerid, 620, 968.3125, -897.2578, 43.9219, 0.25); RemoveBuildingForPlayer(playerid, 620, 974.4766, -907.5547, 41.7422, 0.25); RemoveBuildingForPlayer(playerid, 3643, 992.4844, -896.2813, 46.4063, 0.25); RemoveBuildingForPlayer(playerid, 1307, 998.5781, -951.0703, 41.4844, 0.25); RemoveBuildingForPlayer(playerid, 3643, 1005.0625, -895.5547, 45.8594, 0.25); RemoveBuildingForPlayer(playerid, 1260, 1029.1797, -939.5156, 52.7500, 0.25); RemoveBuildingForPlayer(playerid, 1294, 1034.7891, -950.3750, 46.4297, 0.25); RemoveBuildingForPlayer(playerid, 5848, 1046.6797, -935.1953, 46.9922, 0.25); RemoveBuildingForPlayer(playerid, 3771, 707.6328, -1064.9922, 44.8516, 0.25); // Tractoare mapa: RemoveBuildingForPlayer(playerid, 3276, -133.3281, -7.3047, 2.9375, 0.25); // Mapa Tiruri RemoveBuildingForPlayer(playerid, 17350, -54.9922, -1130.7266, 4.5781, 0.25); RemoveBuildingForPlayer(playerid, 1447, -89.9297, -1133.7500, 1.3906, 0.25); RemoveBuildingForPlayer(playerid, 1438, -87.0547, -1132.6797, 0.0469, 0.25); RemoveBuildingForPlayer(playerid, 17072, -54.9922, -1130.7266, 4.5781, 0.25); RemoveBuildingForPlayer(playerid, 17073, -56.1250, -1130.1719, 4.4922, 0.25); RemoveBuildingForPlayer(playerid, 1447, -84.0547, -1117.2188, 1.3906, 0.25); RemoveBuildingForPlayer(playerid, 1415, -68.3516, -1104.9922, 0.2188, 0.25); RemoveBuildingForPlayer(playerid, 1462, -60.3594, -1116.9375, 0.2578, 0.25); RemoveBuildingForPlayer(playerid, 1438, -63.6719, -1125.6953, 0.0469, 0.25); RemoveBuildingForPlayer(playerid, 1438, -63.4141, -1115.4141, 0.0469, 0.25); RemoveBuildingForPlayer(playerid, 1415, -63.8125, -1106.4219, 0.2188, 0.25); // Mapa Casa Licitatie RemoveBuildingForPlayer(playerid, 3685, 1249.5547, -905.4609, 45.0313, 0.25); RemoveBuildingForPlayer(playerid, 3685, 1287.6875, -900.4609, 45.0625, 0.25); RemoveBuildingForPlayer(playerid, 3685, 1284.2031, -871.2969, 45.2734, 0.25); RemoveBuildingForPlayer(playerid, 3685, 1245.4609, -874.7031, 45.0703, 0.25); RemoveBuildingForPlayer(playerid, 617, 1235.8281, -917.5234, 41.8750, 0.25); RemoveBuildingForPlayer(playerid, 617, 1231.4141, -886.9297, 41.8750, 0.25); RemoveBuildingForPlayer(playerid, 1232, 1241.1953, -886.8438, 44.3594, 0.25); RemoveBuildingForPlayer(playerid, 617, 1227.6094, -870.8047, 41.8750, 0.25); RemoveBuildingForPlayer(playerid, 1294, 1246.4531, -924.3047, 46.2969, 0.25); RemoveBuildingForPlayer(playerid, 617, 1261.9531, -913.7813, 41.8750, 0.25); RemoveBuildingForPlayer(playerid, 1232, 1266.4219, -913.1797, 44.3594, 0.25); RemoveBuildingForPlayer(playerid, 1308, 1280.2422, -912.5234, 41.3047, 0.25); RemoveBuildingForPlayer(playerid, 1232, 1272.3516, -912.4531, 44.3594, 0.25); RemoveBuildingForPlayer(playerid, 617, 1275.6016, -911.9609, 41.8750, 0.25); RemoveBuildingForPlayer(playerid, 3684, 1249.5547, -905.4609, 45.0313, 0.25); RemoveBuildingForPlayer(playerid, 617, 1263.8828, -894.3516, 41.8750, 0.25); RemoveBuildingForPlayer(playerid, 1211, 1266.0859, -906.7031, 42.3984, 0.25); RemoveBuildingForPlayer(playerid, 1232, 1270.9609, -896.6172, 44.3594, 0.25); RemoveBuildingForPlayer(playerid, 1232, 1265.0313, -897.3516, 44.3594, 0.25); RemoveBuildingForPlayer(playerid, 617, 1271.8672, -892.3672, 41.8750, 0.25); RemoveBuildingForPlayer(playerid, 617, 1299.5000, -909.1406, 41.8750, 0.25); RemoveBuildingForPlayer(playerid, 3684, 1287.6875, -900.4609, 45.0625, 0.25); RemoveBuildingForPlayer(playerid, 5847, 1295.8594, -895.0938, 41.7109, 0.25); RemoveBuildingForPlayer(playerid, 1232, 1252.2578, -885.8750, 44.3594, 0.25); RemoveBuildingForPlayer(playerid, 617, 1262.9844, -882.2188, 41.8750, 0.25); RemoveBuildingForPlayer(playerid, 617, 1271.2031, -882.3984, 41.8750, 0.25); RemoveBuildingForPlayer(playerid, 1232, 1285.6484, -881.3125, 44.3594, 0.25); RemoveBuildingForPlayer(playerid, 3684, 1245.4609, -874.7031, 45.0703, 0.25); RemoveBuildingForPlayer(playerid, 3684, 1284.2031, -871.2969, 45.2734, 0.25); RemoveBuildingForPlayer(playerid, 1232, 1303.1094, -879.9531, 44.3594, 0.25); // Mapa F.B.I RemoveBuildingForPlayer(playerid, 620, 1321.5234, -1374.4297, 12.5859, 0.25); RemoveBuildingForPlayer(playerid, 620, 1292.0000, -1374.2969, 12.3672, 0.25); RemoveBuildingForPlayer(playerid, 620, 1300.5859, -1374.2969, 12.3672, 0.25); RemoveBuildingForPlayer(playerid, 620, 1329.4766, -1374.4297, 12.5859, 0.25); // Map Icons SetPlayerMapIcon(playerid, 1, 1554.7507,-1675.6403,16.1953, 30, 1); // Los Santos Police Departament SetPlayerMapIcon(playerid, 2, 2033.9592,-1415.0868,16.9922, 22, 1); // Paramedic Departament SetPlayerMapIcon(playerid, 3, 725.5917,-1450.8367,17.6953, 60, 1); // Los Santos Vagos SetPlayerMapIcon(playerid, 4, 2851.2153,-1532.4215,11.0991, 62, 1); // Grove Street Family SetPlayerMapIcon(playerid, 5, 2793.2654,-1087.5583,30.7188, 59, 1); // Ballas Mobs Family SetPlayerMapIcon(playerid, 6, 952.5698,-909.9251,45.7656, 58, 1); // Varios Los Aztecas SetPlayerMapIcon(playerid, 7, 1310.0326,-1368.4738,13.5494, 30, 1); // Federal Bureau of Investigations SetPlayerMapIcon(playerid, 8, 1073.74, -344.48, 73.56, 23, 1); // Hitman Angecy SetPlayerMapIcon(playerid, 9, 1518.8638,-1453.2090,13.7743, 30, 1); // National Guard SetPlayerMapIcon(playerid, 10, 1753.5099,-1894.1813,13.5572, 56, 1); // Taxi Company SetPlayerMapIcon(playerid, 11, 2481.7085,-1536.7928,24.0970, 38, 1); // School Instructor SetPlayerMapIcon(playerid, 12, 1481.08, -1771.38, 18.79, 56, 1); // Primaria SetPlayerMapIcon(playerid, 13, 2131.8369,-1150.5486,24.1454, 55, 0, MAPICON_LOCAL); SetPlayerMapIcon(playerid, 14, 1410.9225,-1701.1395,13.5395, 55, 0, MAPICON_LOCAL); SetPlayerMapIcon(playerid, 15, 2751.8899,-1468.2407,30.4531, 55, 0, MAPICON_LOCAL); SetPlayerMapIcon(playerid, 16, 370.9933,-2052.3145,8.0156, 55, 0, MAPICON_LOCAL); SetPlayerMapIcon(playerid, 17, 1606.3135,-2432.6738,13.5547, 55, 0, MAPICON_LOCAL); SetPlayerMapIcon(playerid, 18, 1461.695, -1011.915, 26.84375, 52, COLOR_YELLOW); // Bank LS SetPlayerMapIcon(playerid, 19, 2244.4497,-1665.1040,15.4766, 45, 1); // Binco Los Santos SetPlayerMapIcon(playerid, 20, 1835.5787,-1682.3311,13.3839, 48, 1); // Alahambra // new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name)); if(strfind(Name, "samp.", true) != -1) { Ban(playerid); return 1; } GetPlayerName(playerid, Name, sizeof(Name)); if(strfind(Name, "rpg.", true) != -1) { Ban(playerid); return 1; } GetPlayerName(playerid, Name, sizeof(Name)); if(strfind(Name, ".ro", true) != -1) { Ban(playerid); return 1; } if(strfind(Name, "gta.", true) != -1) { Ban(playerid); return 1; } for(new z = 0; z < 1024; z++) { if(zGangZones[z][zexist]) { GangZoneShowForPlayer(playerid,zGangZones[z][border][0],0x00000080); GangZoneShowForPlayer(playerid,zGangZones[z][border][1],0x00000080); GangZoneShowForPlayer(playerid,zGangZones[z][border][2],0x00000080); GangZoneShowForPlayer(playerid,zGangZones[z][border][3],0x00000080); for(new nump;nump<5;nump++) { if(zGangZones[z][npart][nump] != -1) { GangZoneShowForPlayer(playerid,zGangZones[z][npart][nump],0x00000080); } if(zGangZones[z][npart2][nump] != -1) { GangZoneShowForPlayer(playerid,zGangZones[z][npart2][nump],0x00000080); } } } } FakeKiller[playerid] = 0; TogLC[playerid] = 1; JobStep[playerid] = 0; AnimPlay[playerid] = 0; Train[playerid] = 0; SaveTimer[playerid] = 3; AdTimer[playerid] = 0; ResetPlayerCash(playerid); ShowSMS[playerid] = 0; ShowWhisper[playerid] = 0; EnteredHouse[playerid] = 0; RentHouse[playerid] = 0; House[playerid] = 999; Efraction[playerid] = 0; HouseRequested[playerid] = 0; HouseRequested[playerid] = 0; Houses[playerid] = 0; //--------------------------------------------------------------------------------[/pawn] SetPlayerSpawn [pawn]public SetPlayerSpawn(playerid) { if(IsPlayerConnected(playerid)) { new rand; UpdateGangZones(); if(PlayerInfo[playerid][pTut] == 0) { SetPlayerPos(playerid, 1471.4669,-1910.4226,24.3149); SetPlayerFacingAngle(playerid, 2.2581); SetPlayerCameraPos(playerid, 1472.2900, -1889.6700, 21.5900); SetPlayerCameraLookAt(playerid, 1472.2900, -1890.6801, 21.6500); gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1; TogglePlayerControllable(playerid, 0); RegistrationStep[playerid] = 1; TextDrawShowForPlayer(playerid,Bara1); TextDrawShowForPlayer(playerid,Bara2); TextDrawHideForPlayer(playerid, Date); TextDrawHideForPlayer(playerid, CeasClock); TextDrawHideForPlayer(playerid, LogoJOS[0]); TextDrawHideForPlayer(playerid, LogoJOS[1]); ShowPlayerDialog(playerid, 100, DIALOG_STYLE_MSGBOX, "\t", "{FFFFFF} Ce sex esti? Apasa click pe butonul corespunzator de mai jos:", "Masculin", "Feminin"); } else if(PlayerPaintballing[playerid] != 0) { ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 29, 999); rand = random(sizeof(PaintballSpawns)); SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]); return 1; } else if(PlayerInfo[playerid][pJailed] > 0 || PlayerInfo[playerid][pJailTime]) { new celula = random(5); if(celula == 1) { TogglePlayerControllable(playerid, 0); SetTimerEx("UnfreezePlayerTime", 3000, false, "d", playerid); SetPlayerPos(playerid, 901.3228,-1275.4541,1474.5554); SetPlayerFacingAngle(playerid, 182.6906); SetPlayerInterior(playerid, 1); SendClientMessage(playerid, COLOR_WHITE, "{C90000}Info: {FFFFFF}Timpul de inchisoare nu este ispasit, treci inapoi."); return 1; } if(celula == 2) { TogglePlayerControllable(playerid, 0); SetTimerEx("UnfreezePlayerTime", 3000, false, "d", playerid); SetPlayerPos(playerid, 896.8344,-1275.5319,1474.5554); SetPlayerFacingAngle(playerid, 179.9750); SetPlayerInterior(playerid, 1); SendClientMessage(playerid, COLOR_WHITE, "{C90000}Info: {FFFFFF}Timpul de inchisoare nu este ispasit, treci inapoi."); return 1; } if(celula == 3) { TogglePlayerControllable(playerid, 0); SetTimerEx("UnfreezePlayerTime", 3000, false, "d", playerid); SetPlayerPos(playerid, 892.2840,-1275.7642,1474.5554); SetPlayerFacingAngle(playerid, 181.6044); SetPlayerInterior(playerid, 1); SendClientMessage(playerid, COLOR_WHITE, "{C90000}Info: {FFFFFF}Timpul de inchisoare nu este ispasit, treci inapoi."); return 1; } if(celula == 4) { TogglePlayerControllable(playerid, 0); SetTimerEx("UnfreezePlayerTime", 3000, false, "d", playerid); SetPlayerPos(playerid, 887.9484,-1275.5062,1474.5554); SetPlayerFacingAngle(playerid, 181.0612); SetPlayerInterior(playerid, 1); SendClientMessage(playerid, COLOR_WHITE, "{C90000}Info: {FFFFFF}Timpul de inchisoare nu este ispasit, treci inapoi."); return 1; } else { TogglePlayerControllable(playerid, 0); SetTimerEx("UnfreezePlayerTime", 3000, false, "d", playerid); SetPlayerPos(playerid, 883.5203,-1275.6064,1474.5554); SetPlayerFacingAngle(playerid, 181.0612); SetPlayerInterior(playerid, 1); SendClientMessage(playerid, COLOR_WHITE, "{C90000}Info: {FFFFFF}Timpul de inchisoare nu este ispasit, treci inapoi."); return 1; } } else if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0) { new string[256]; new cut = deathcost; GivePlayerCash(playerid, -cut); format(string, sizeof(string), "Factura dumneavostra de sanatate a costat $%d, Sa aveti o zi buna.", cut); SendClientMessage(playerid, TEAM_CYAN_COLOR, string); MedicBill[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; PlayerInfo[playerid][pDeaths] += 1; SetPlayerHealth(playerid, 25.0); format(string, sizeof(string), "UPDATE players SET Deaths='%d' WHERE id=%d", PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pSQLID]); mysql_query(string); } if(SpawnChange[playerid] != 0) { if(PlayerInfo[playerid][pJailed] < 1) { new sendernamen[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendernamen, sizeof(sendernamen)); if(strfind(HouseInfo[spawnChange[playerid]][hOwner], sendernamen, true) != -1) { SetPlayerPos(playerid, HouseInfo[spawnChange[playerid]][hPosX1], HouseInfo[spawnChange[playerid]][hPosY1], HouseInfo[spawnChange[playerid]][hPosZ1]); SetPlayerInterior(playerid, HouseInfo[spawnChange[playerid]][hInt]); SetPlayerVirtualWorld(playerid, SpawnChange[playerid]); return 1; } if(PlayerInfo[playerid][pPhousekey] != 255) { new houserent = PlayerInfo[playerid][pPhousekey]; SetPlayerPos(playerid, HouseInfo[houserent][hPosX1], HouseInfo[houserent][hPosY1], HouseInfo[houserent][hPosZ1]); SetPlayerInterior(playerid, HouseInfo[houserent][hInt]); SetPlayerVirtualWorld(playerid, houserent); return 1; } else SpawnChange[playerid] = 0; } } else if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Police Departament spawn { SetPlayerToTeamColor(playerid); SetPlayerPos(playerid, 246.375991,109.245994,1003.218750); SetPlayerInterior(playerid, 10); PlayerInfo[playerid][pInt] = 10; return 1; } else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)//FBI Spawn { SetPlayerToTeamColor(playerid); SetPlayerPos(playerid,288.745971,169.350997,1007.171875); SetPlayerInterior(playerid,3); GivePlayerWeapon(playerid, 3, 1); SetPlayerVirtualWorld(playerid, 0); return 1; } else if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3)//National Guard spawn { SetPlayerToTeamColor(playerid); SetPlayerInterior(playerid, 17); SetPlayerPos(playerid, -959.5004,1956.1925,9.0000); PlayerInfo[playerid][pInt] = 17; SetPlayerVirtualWorld(playerid, 0); return 1; } else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Paramedic Departament { SetPlayerToTeamColor(playerid); SetPlayerPos(playerid, -2639.5876,948.0283,1656.0149); SetPlayerFacingAngle(playerid, 352.6163); TogglePlayerControllable(playerid, 0); SetTimerEx("UnfreezePlayer",3000,0,"i",playerid); SetPlayerInterior(playerid, 1); PlayerInfo[playerid][pInt] = 1; SetPlayerVirtualWorld(playerid, 1); return 1; } else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) //Los Santos Vagos Spawn { SetPlayerToTeamColor(playerid); SetPlayerPos(playerid, 2350.9915,-67.9309,1423.2792); SetPlayerFacingAngle(playerid, 88.8091); SetTimerEx("FreezePlayer",1,0,"i",playerid); SetTimerEx("UnfreezePlayer",3000,0,"i",playerid); SetPlayerInterior(playerid, 1); PlayerInfo[playerid][pInt] = 1; SetPlayerVirtualWorld(playerid, 1); return 1; } else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//Taxi spawn { SetPlayerToTeamColor(playerid); SetPlayerPos(playerid, 834.3508,-2019.1733,2098.2468); SetPlayerFacingAngle(playerid, 177.8340); TogglePlayerControllable(playerid, 0); SetTimerEx("UnfreezePlayer",3000,0,"i",playerid); SetPlayerInterior(playerid, 1); PlayerInfo[playerid][pInt] = 1; SetPlayerVirtualWorld(playerid, 1); return 1; } else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) //Driving/Flying School spawn { SetPlayerToTeamColor(playerid); SetPlayerPos(playerid, -347.9645,1520.4807,1179.5804); SetPlayerFacingAngle(playerid, 273.1416); TogglePlayerControllable(playerid, 0); SetTimerEx("UnfreezePlayer",3000,0,"i",playerid); SetPlayerInterior(playerid,1); PlayerInfo[playerid][pInt] = 1; SetPlayerVirtualWorld(playerid, 1); return 1; } else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman Angecy SpawN { GivePlayerWeapon(playerid, 23, 100); GivePlayerWeapon(playerid, 4, 1); SetPlayerToTeamColor(playerid); SetPlayerPos(playerid, 318.564971,1118.209960,1083.882812); SetPlayerInterior(playerid,5); SetPlayerVirtualWorld(playerid, 0); PlayerInfo[playerid][pInt] = 5; return 1; } else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News spawn { SetPlayerToTeamColor(playerid); SetPlayerPos(playerid, -60.3692,1218.8373,1220.8027); SetPlayerFacingAngle(playerid, 314.0005); TogglePlayerControllable(playerid, 0); SetTimerEx("UnfreezePlayer",3000,0,"i",playerid); GivePlayerWeapon(playerid, 43, 999); GivePlayerWeapon(playerid, 43, 999); SetPlayerInterior(playerid, 1); PlayerInfo[playerid][pInt] = 1; SetPlayerVirtualWorld(playerid, 1); return 1; } else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)//Grove Street Family spawn { SetPlayerToTeamColor(playerid); SetPlayerPos(playerid, -989.6677,581.6483,784.1459); SetPlayerFacingAngle(playerid, 43.8554); TogglePlayerControllable(playerid, 0); SetTimerEx("UnfreezePlayer",3000,0,"i",playerid); SetPlayerInterior(playerid, 1); PlayerInfo[playerid][pInt] = 1; SetPlayerVirtualWorld(playerid, 1); return 1; } else if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)//Ballas Mobs Family spawn { SetPlayerToTeamColor(playerid); SetPlayerPos(playerid, 2981.4971,1199.9919,1332.5234); SetPlayerFacingAngle(playerid, 5.5929); TogglePlayerControllable(playerid, 0); SetTimerEx("UnfreezePlayer",3000,0,"i",playerid); SetPlayerInterior(playerid, 1); PlayerInfo[playerid][pInt] = 1; SetPlayerVirtualWorld(playerid, 1); return 1; } else if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)//Varios Los Aztecas spawn { SetPlayerToTeamColor(playerid); TogglePlayerControllable(playerid, 0); SetPlayerPos(playerid, -1314.5095,2914.4387,2074.5667); SetPlayerFacingAngle(playerid, 117.9657); TogglePlayerControllable(playerid, 0); SetTimerEx("UnfreezePlayer",3000,0,"i",playerid); SetPlayerInterior(playerid, 1); PlayerInfo[playerid][pInt] = 1; SetPlayerVirtualWorld(playerid, 1); return 1; } else if((gTeam[playerid]) == 1) { SetPlayerToTeamColor(playerid); rand = random(sizeof(gMedPlayerSpawns)); SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player SetPlayerFacingAngle(playerid, 270.0); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; SetPlayerVirtualWorld(playerid, 0); return 1; } else if(PlayerInfo[playerid][pFMember] == 255) { SetPlayerToTeamColor(playerid); if(PlayerInfo[playerid][pOrigin] == 1 || PlayerInfo[playerid][pMember] == 0)//Los Santos { SetPlayerPos(playerid, 1567.9543,-1897.2360,13.5607); SetPlayerFacingAngle(playerid, 4.0876); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; SetPlayerVirtualWorld(playerid, 0); PlayerInfo[playerid][pVirWorld] = 0; } } else if(PlayerInfo[playerid][pGun1] != 0 && PlayerInfo[playerid][pAmmo1] != 0) { GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun1], PlayerInfo[playerid][pAmmo1]); } else if(PlayerInfo[playerid][pGun2] != 0 && PlayerInfo[playerid][pAmmo2] != 0) { GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun2], PlayerInfo[playerid][pAmmo2]); } else if(PlayerInfo[playerid][pGun3] != 0 && PlayerInfo[playerid][pAmmo3] != 0) { GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun3], PlayerInfo[playerid][pAmmo3]); } else if(PlayerInfo[playerid][pGun4] != 0 && PlayerInfo[playerid][pAmmo4] != 0) { GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun4], PlayerInfo[playerid][pAmmo4]); } else if(PlayerInfo[playerid][pGun5] != 0 && PlayerInfo[playerid][pAmmo5] != 0) { GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun5], PlayerInfo[playerid][pAmmo5]); } else if(PlayerInfo[playerid][pGun6] != 0 && PlayerInfo[playerid][pAmmo6] != 0) { GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun6], PlayerInfo[playerid][pAmmo6]); } } return 1; } //------------------------------------------------------------------------------------------------------[/pawn] Mai e nevoie de ceva?
  3. Pune log-ul aici. Si sa ai nativechecker.
  4. Nume: dexter Problem? întâlnit?: Am o mare problema la gamemode. Cand un player se inregistreaza sau se logheaza pe server, dupa scrierea parolei sau completarea formularului de inregistrare te spawneaza la jail, ca si cum ai fi inchis, dar fara timp (pt.totdeauna). Ce am încercat pân? acum: Am incercat sa scot sistemul de jail si, evident, nu m-a mai spawnat la inchisoare, dar imi tot aparea sa completez formularul de inregistrare atunci cand ma logam.. Codul sursa/Log/Altele: In log nu e nici o problema si cand compilez e totul curat, fara nici un warning. O sa las reply cu tot ce e nevoie, doar sa imi spuneti ce trebuie. Oricine ma poate ajuta, vreau sa stiti ca gamemodul ruleaza pe un server, deja deschis, dar o versiune mai veche, fara aceasta problema, asa ca v-as putea rasplati cu o functie pe server sau daca doriti putem avea o colaborare, in sensul de a ajuta la update-uri sau alte buguri. In schimb veti avea aceleasi drepturi si beneficii ca mine, in legatura cu serverul. Multumesc mult si astept raspuns cat mai repede !
  5. E postat tot mai sus prin reply-uri..
  6. Este mai sus , la inceputul topicului.. Asta daca am inteles eu bine..
  7. Nu este " dialogid == 97 " .. Am gasit doar astea in schimb : [pawn] if(dialogid == 96) { if(response) { PlayerInfo[playerid][pStats] = 2; ShowStats(playerid, playerid); } else { PlayerInfo[playerid][pStats] = 1; ShowStats(playerid, playerid); return 1; } } if(dialogid == 98) { if(response) { PlayerInfo[playerid][pStats] = 2; SCM(playerid, -1, "{800000}[s-F] {FFFFFF}Vizualizarea statisticilor contului tau a fost schimbata in modul DIALOG!"); SCM(playerid, -1, "{800000}[s-F] {FFFFFF}Tasteaza /stats pentru a vedea noile modificari!"); return 1; } else { PlayerInfo[playerid][pStats] = 1; SCM(playerid, -1, "{800000}[s-F] {FFFFFF}Vizualizarea statisticilor contului tau a fost schimbata in modul TEXT!"); SCM(playerid, -1, "{800000}[s-F] {FFFFFF}Tasteaza /stats pentru a vedea noile modificari!"); return 1; } }[/pawn]
  8. Am doar unul, si degeaba il scot.. Aceeasi problema.
  9. [pawn]public ShowStats(playerid,targetid) { if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid)) { new cash = GetPlayerCash(targetid); new atext[20]; if(PlayerInfo[targetid][pSex] == 1) { atext = "Masculin"; } else if(PlayerInfo[targetid][pSex] == 2) { atext = "Feminin"; } new ttext[20]; if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "Medic&Fireman"; } else if(gTeam[targetid] == 4 || gTeam[targetid] == 3) { ttext = "Civil"; } else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { ttext = "Politia Romana"; } else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { ttext = "S.R.I.."; } else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { ttext = "Armata Romana"; } else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "S.M.U.R.D"; } else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ttext = "Clanul Sportivilor"; } else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { ttext = "Clanul Cordunenilor"; } else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7) { ttext = "Clanul Butoane"; } else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8) { ttext = "Agentia Hitman"; } else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { ttext = "PRO TV"; } else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10) { ttext = "Taxi Cab Co."; } else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ttext = "Instructor Auto"; } else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12) { ttext = "Remorcari Auto"; } new rtext[64]; if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)//PR Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Cadet"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Ofiter"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Sergent"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Locotenent"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Capitan"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Chestor"; } else { rtext = "Cadet"; } } else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)//S.R.I Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Subinspector"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Inspector"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Comisar"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Agent special"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Asistent director"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Director"; } else { rtext = "Subinspector"; } } else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)//NG Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Caporal"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Sergent"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Maior"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Capitan"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Locotenent"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "General"; } else { rtext = "Caporal"; } } else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)//MF Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Student"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Pompier"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Asistent"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Medic primar"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Director adjunct"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Director"; } else { rtext = "Subinspector"; } } else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)//Clanul Sportivilor Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Incepator"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Talhar"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Mafiot"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Criminal"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Coordonator"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Sefu'"; } else { rtext = "Sefu'"; } } else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6)//Clanul Cordunenilor Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Incepator"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Talhar"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Mafiot"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Criminal"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Coordonator"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Sefu'"; } else { rtext = "Sefu'"; } } else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7)// Clanul Butoane Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Copil"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Hot"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Jefuitor"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Violator"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Criminal"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Sefu'"; } else { rtext = "Copil"; } } else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)//Hitman Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Incepator"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Lunetist"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Asasin"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Asasin profesionist"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vice-Director"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Director"; } else { rtext = "Incepator"; } } else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)//NR Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Cameraman"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Ziarist"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Reporter"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Redactor sef"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Editor"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Producator"; } else { rtext = "Cameraman"; } } else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)//Taxi Company Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Incepator"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Sofer"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Taximetrist"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Dispecer"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Director"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Proprietar Taxi"; } else { rtext = "Incepator"; } } else if(IsAnInstructor(targetid))//Driving/Flying School Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Student"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Instructor"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Instructor profesionist"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Manager"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vice-director"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Director"; } else { rtext = "Student"; } } else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12)// Remorcari Auto { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Vulcanizator"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Mecanic incepator"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Mecanic profesionist"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Mester"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Inginer mecanic"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Director companie"; } else { rtext = "Vulcanizator"; } } else { rtext = "-"; } new jtext[20]; if(PlayerInfo[targetid][pJob] == 1) { jtext = "Detectiv"; } else if(PlayerInfo[targetid][pJob] == 2) { jtext = "Avocat"; } else if(PlayerInfo[targetid][pJob] == 3) { jtext = "Prostituata"; } else if(PlayerInfo[targetid][pJob] == 4) { jtext = "Dealer droguri"; } else if(PlayerInfo[targetid][pJob] == 5) { jtext = "Spargator de masini"; } else if(PlayerInfo[targetid][pJob] == 6) { jtext = "Reporter"; } else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Mecanic auto"; } else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Bodyguard"; } else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Dealer arme"; } else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Dealer masini"; } else if(PlayerInfo[targetid][pJob] == 11) { jtext = "Fermier"; } else if(PlayerInfo[targetid][pJob] == 12) { jtext = "Curier"; } else if(PlayerInfo[targetid][pJob] == 14) { jtext = "Sofer autobuz"; } else if(PlayerInfo[targetid][pJob] == 15) { jtext = "Ziarist"; } else if(PlayerInfo[targetid][pJob] == 16) { jtext = "Camionagiu"; } else { jtext = "Somer"; } new drank[20]; if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Da"; } else { drank = "Nu exista"; } new married[20]; strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255); new age = PlayerInfo[targetid] ; new ptime = PlayerInfo[targetid][pConnectTime]; new fwarn = PlayerInfo[targetid][pFwarn]; new fpunish = PlayerInfo[targetid][pPunish]; new drugs = PlayerInfo[targetid][pDrugs]; new mats = PlayerInfo[targetid][pMats]; new wanted = WantedLevel[targetid]; new level = PlayerInfo[targetid][pLevel]; new exp = PlayerInfo[targetid][pExp]; new pnumber = PlayerInfo[targetid][pPnumber]; new account = PlayerInfo[targetid][pAccount]; new nxtlevel = PlayerInfo[targetid][pLevel]+1; new expamount = nxtlevel*levelexp; new costlevel = nxtlevel*levelcost;//10k for testing purposes new housekey = PlayerInfo[targetid][pPhousekey]; new bizkey = PlayerInfo[targetid][pPbiskey]; new intir = PlayerInfo[targetid][pInt]; new skin = PlayerInfo[targetid][pChar]; new Float:health; GetPlayerHealth(targetid, health); new local = PlayerInfo[targetid][pLocal]; new PRob = PlayerInfo[targetid][pRob]; new name[MAX_PLAYER_NAME]; new warns = PlayerInfo[targetid][pWarns]; new imprumut = PlayerInfo[targetid][pImprumut]; new imprumutscazut = PlayerInfo[targetid][pImprumut]/45; new sms = PlayerInfo[targetid][pSMS]; new call = PlayerInfo[targetid][pCall]; GetPlayerName(targetid, name, sizeof(name)); new Float:px,Float:py,Float:pz; GetPlayerPos(targetid, px, py, pz); new plrip[16]; GetPlayerIp(targetid, plrip, sizeof(plrip)); new string9[128]; if(PlayerInfo[playerid][pStats] == 0) { format(string9, sizeof(string9), "{FFFFFF}Sub ce forma doresti sa-ti vizualizezi statisticile contului (/stats)?"); ShowPlayerDialog(playerid, 96, DIALOG_STYLE_MSGBOX, "Statistici cont",string9, "Indisponibil", "Text"); } if(PlayerInfo[playerid][pStats] == 1) { new year, month, day; getdate(year,month,day); new coordsstring[256]; SendClientMessage(playerid, COLOR_dexter,"------------------------------------------------------------------------------------"); format(coordsstring, sizeof(coordsstring),"{FFFFFF}»»»»»»»»»»»»»»»» {800000}STATISTICI CONT: %s - %d.%d.%d {FFFFFF}««««««««««««««««",name, day, month, year); SendClientMessage(playerid, COLOR_WHITE,coordsstring); format(coordsstring, sizeof(coordsstring), "{800000}Level:{FFFFFF} %d || Sex: %s || Varsta: %d || Cash: $%s || Banca: $%s || Job: %s || Skin: %d", level,atext,age,FormatNumber(cash),FormatNumber(account), jtext, skin); SendClientMessage(playerid, COLOR_GRAD1,coordsstring); format(coordsstring, sizeof(coordsstring), "{800000}Cont Premium:{FFFFFF} %s || Casatorit: %s || OreJucate: %d || PretLevel: $%s || Tel: %d || Warns: %d/3", drank,married,ptime,FormatNumber(costlevel),pnumber,warns); SendClientMessage(playerid, COLOR_GRAD3,coordsstring); format(coordsstring, sizeof(coordsstring), "{800000}Credit:{FFFFFF} %d SMS/%d apeluri || Imprumut: %s$/%s$ || PuncteWanted: %d/6 || FPunish: %d/15 || PuncteRob: %d/10",sms,call, FormatNumber(imprumutscazut),FormatNumber(imprumut), wanted, fpunish, PRob); SendClientMessage(playerid, COLOR_GRAD4,coordsstring); format(coordsstring, sizeof(coordsstring), "{800000}Droguri:{FFFFFF} %d || Materiale: %d || Respect: %d/%d || Factiune: %s || FWarns: %d/3 || Rang: %s",drugs,mats,exp,expamount,ttext,fwarn,rtext); SendClientMessage(playerid, COLOR_GRAD5,coordsstring); if(PlayerInfo[playerid][pAdmin] >= 1) { format(coordsstring, sizeof(coordsstring), "{800000}Administrator:{FFFFFF} %d || HP: %.1f || Afacere: %d || HireKey: %d || Interior: %d || Local: %d || IP: %s", PlayerInfo[targetid][pAdmin],health,housekey,bizkey,HireCar[targetid],intir,local,plrip); SendClientMessage(playerid, COLOR_LIGHTRED,coordsstring); format(coordsstring, sizeof(coordsstring), "{800000}Vehicul [slot #1]: %d || Vehicul [slot #2]: %d || Vehicul [slot #3]: %d || Casa: %d || Afacere: %d ", PlayerInfo[targetid][pPcarkey], PlayerInfo[targetid][pPcarkey2],PlayerInfo[targetid][pPcarkey3], housekey, bizkey); SendClientMessage(playerid, COLOR_LIGHTRED,coordsstring); } SendClientMessage(playerid, COLOR_dexter,"------------------------------------------------------------------------------------"); } if(PlayerInfo[playerid][pStats] == 2) { new string2[1152]; new coordsstring[1152]; new year, month, day; getdate(year,month,day); format(string2, sizeof(string2),"{FFFFFF}» STATISTICI CONT: {800000}%s {FFFFFF}- %d.%d.%d « \n", name, day, month, year); format(coordsstring, sizeof(coordsstring), "{FFFFFF}Level: {800000}%d {FFFFFF}| Sex: {800000}%s {FFFFFF}| Varsta: {800000}%d {FFFFFF}| Cash: {800000}$%s {FFFFFF}| Banca: {800000}$%s \n", level,atext,age,FormatNumber(cash),FormatNumber(account)); strcat(string2,coordsstring); format(coordsstring, sizeof(coordsstring), "{FFFFFF}Cont Premium: {800000}%s {FFFFFF}| Casatorit: {800000}%s {FFFFFF}| OreJucate: {800000}%d {FFFFFF}| Job: {800000}%s \n", drank,married,ptime,jtext); strcat(string2,coordsstring); format(coordsstring, sizeof(coordsstring), "{FFFFFF}Imprumut: {800000}%s${FFFFFF}/{800000}%s$ {FFFFFF}| {800000}FPunish: %d/40 {FFFFFF}| PuncteWanted: {800000}%d{FFFFFF}/6 | Tel: {800000}%d \n",FormatNumber(imprumutscazut),FormatNumber(imprumut),wanted, fpunish, pnumber); strcat(string2,coordsstring); format(coordsstring, sizeof(coordsstring), "{FFFFFF}Droguri: {800000}%d {FFFFFF}| Materiale: %d {FFFFFF}| Respect: {800000}%d{FFFFFF}/{800000}%d {FFFFFF}| Factiune: {800000}%s {FFFFFF}| Rang: {800000}%s \n",drugs,mats,exp, expamount,ttext,rtext,fwarn, warns); strcat(string2,coordsstring); format(coordsstring, sizeof(coordsstring), "{FFFFFF}Credit: {800000}%d mesaje/%d apeluri {FFFFFF}| PuncteRob: {800000}%d/10 {FFFFFF}| FWarns: {800000}%d/3 {FFFFFF}| Warns: {800000}%d/3 \n\n",sms, call, PRob, fwarn, warns); strcat(string2,coordsstring); if(PlayerInfo[playerid][pAdmin] >= 1) { format(coordsstring, sizeof(coordsstring), "{FF0000}Administrator: %d | HP: %.1f | Casa: %d | Afacere: %d | HireKey: %d | Interior: %d | Local: %d | IP: %s \n", PlayerInfo[targetid][pAdmin],health,housekey,bizkey,HireCar[targetid],intir,local,plrip); strcat(string2, coordsstring); format(coordsstring, sizeof(coordsstring), "{FF0000}Vehicul [slot #1]: %d | Vehicul [slot #2]: %d | Vehicul [slot #3]: %d | Skin: %d", PlayerInfo[targetid][pPcarkey], PlayerInfo[targetid][pPcarkey2],PlayerInfo[playerid][pPcarkey3],skin); strcat(string2, coordsstring); } ShowPlayerDialog(playerid,97,DIALOG_STYLE_MSGBOX,"Statistici cont",string2,"Iesire",""); } } new sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); printf("[DEBUG]: #ShowStats - %s", sendername); } //---------------------------------------------------------[/pawn] Sper sa fie bun acum..
  10. Am rezolvat, multumesc de ajutor .
  11. La "rintf("[DEBUG]: #ShowStats - %s", sendername);" se termina.. incepe "SetPlayerToTeamColor"..
  12. Nick: dexter Problema: Primesc un warning, la compilarea gamemodului si nu gasesc nimic altceva la linia erorii decat o acolada.. Erori / warnings: [pawn]C:\Users\dexter\Desktop\Strike-Forces\gamemodes\sf.pwn(14107) : warning 209: function "OnDialogResponse" should return a value Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 9756 bytes Code size: 1577928 bytes Data size: 5344112 bytes Stack/heap size: 16384 bytes; estimated max. usage=6395 cells (25580 bytes) Total requirements: 6948180 bytes 1 Warning. [/pawn] Lini/script: xx Ai incercat sa rezolvi singur ?: Nu am incercat pt. ca nu imi dau seama din ce cauza primesc warning-ul Continutul liniei de unde provine warning-ul
  13. [pawn] if(PlayerInfo[playerid][pStats] == 0) { format(string9, sizeof(string9), "{FFFFFF}Sub ce forma doresti sa-ti vizualizezi statisticile contului (/stats)?"); ShowPlayerDialog(playerid, 96, DIALOG_STYLE_MSGBOX, "Statistici cont",string9, "Indisponibil", "Text"); } if(PlayerInfo[playerid][pStats] == 1) { new year, month, day; getdate(year,month,day); new coordsstring[256]; SendClientMessage(playerid, COLOR_dexter,"------------------------------------------------------------------------------------"); format(coordsstring, sizeof(coordsstring),"{FFFFFF}»»»»»»»»»»»»»»»» {800000}STATISTICI CONT: %s - %d.%d.%d {FFFFFF}««««««««««««««««",name, day, month, year); SendClientMessage(playerid, COLOR_WHITE,coordsstring); format(coordsstring, sizeof(coordsstring), "{800000}Level:{FFFFFF} %d || Sex: %s || Varsta: %d || Cash: $%s || Banca: $%s || Job: %s || Skin: %d", level,atext,age,FormatNumber(cash),FormatNumber(account), jtext, skin); SendClientMessage(playerid, COLOR_GRAD1,coordsstring); format(coordsstring, sizeof(coordsstring), "{800000}Cont Premium:{FFFFFF} %s || Casatorit: %s || OreJucate: %d || PretLevel: $%s || Tel: %d || Warns: %d/3", drank,married,ptime,FormatNumber(costlevel),pnumber,warns); SendClientMessage(playerid, COLOR_GRAD3,coordsstring); format(coordsstring, sizeof(coordsstring), "{800000}Credit:{FFFFFF} %d SMS/%d apeluri || Imprumut: %s$/%s$ || PuncteWanted: %d/6 || FPunish: %d/15 || PuncteRob: %d/10",sms,call, FormatNumber(imprumutscazut),FormatNumber(imprumut), wanted, fpunish, PRob); SendClientMessage(playerid, COLOR_GRAD4,coordsstring); format(coordsstring, sizeof(coordsstring), "{800000}Droguri:{FFFFFF} %d || Materiale: %d || Respect: %d/%d || Factiune: %s || FWarns: %d/3 || Rang: %s",drugs,mats,exp,expamount,ttext,fwarn,rtext); SendClientMessage(playerid, COLOR_GRAD5,coordsstring); if(PlayerInfo[playerid][pAdmin] >= 1) { format(coordsstring, sizeof(coordsstring), "{800000}Administrator:{FFFFFF} %d || HP: %.1f || Afacere: %d || HireKey: %d || Interior: %d || Local: %d || IP: %s", PlayerInfo[targetid][pAdmin],health,housekey,bizkey,HireCar[targetid],intir,local,plrip); SendClientMessage(playerid, COLOR_LIGHTRED,coordsstring); format(coordsstring, sizeof(coordsstring), "{800000}Vehicul [slot #1]: %d || Vehicul [slot #2]: %d || Vehicul [slot #3]: %d || Casa: %d || Afacere: %d ", PlayerInfo[targetid][pPcarkey], PlayerInfo[targetid][pPcarkey2],PlayerInfo[targetid][pPcarkey3], housekey, bizkey); SendClientMessage(playerid, COLOR_LIGHTRED,coordsstring); } SendClientMessage(playerid, COLOR_dexter,"------------------------------------------------------------------------------------"); } if(PlayerInfo[playerid][pStats] == 2) { new string2[1152]; new coordsstring[1152]; new year, month, day; getdate(year,month,day); format(string2, sizeof(string2),"{FFFFFF}» STATISTICI CONT: {800000}%s {FFFFFF}- %d.%d.%d « \n", name, day, month, year); format(coordsstring, sizeof(coordsstring), "{FFFFFF}Level: {800000}%d {FFFFFF}| Sex: {800000}%s {FFFFFF}| Varsta: {800000}%d {FFFFFF}| Cash: {800000}$%s {FFFFFF}| Banca: {800000}$%s \n", level,atext,age,FormatNumber(cash),FormatNumber(account)); strcat(string2,coordsstring); format(coordsstring, sizeof(coordsstring), "{FFFFFF}Cont Premium: {800000}%s {FFFFFF}| Casatorit: {800000}%s {FFFFFF}| OreJucate: {800000}%d {FFFFFF}| Job: {800000}%s \n", drank,married,ptime,jtext); strcat(string2,coordsstring); format(coordsstring, sizeof(coordsstring), "{FFFFFF}Imprumut: {800000}%s${FFFFFF}/{800000}%s$ {FFFFFF}| {800000}FPunish: %d/40 {FFFFFF}| PuncteWanted: {800000}%d{FFFFFF}/6 | Tel: {800000}%d \n",FormatNumber(imprumutscazut),FormatNumber(imprumut),wanted, fpunish, pnumber); strcat(string2,coordsstring); format(coordsstring, sizeof(coordsstring), "{FFFFFF}Droguri: {800000}%d {FFFFFF}| Materiale: %d {FFFFFF}| Respect: {800000}%d{FFFFFF}/{800000}%d {FFFFFF}| Factiune: {800000}%s {FFFFFF}| Rang: {800000}%s \n",drugs,mats,exp, expamount,ttext,rtext,fwarn, warns); strcat(string2,coordsstring); format(coordsstring, sizeof(coordsstring), "{FFFFFF}Credit: {800000}%d mesaje/%d apeluri {FFFFFF}| PuncteRob: {800000}%d/10 {FFFFFF}| FWarns: {800000}%d/3 {FFFFFF}| Warns: {800000}%d/3 \n\n",sms, call, PRob, fwarn, warns); strcat(string2,coordsstring); if(PlayerInfo[playerid][pAdmin] >= 1) { format(coordsstring, sizeof(coordsstring), "{FF0000}Administrator: %d | HP: %.1f | Casa: %d | Afacere: %d | HireKey: %d | Interior: %d | Local: %d | IP: %s \n", PlayerInfo[targetid][pAdmin],health,housekey,bizkey,HireCar[targetid],intir,local,plrip); strcat(string2, coordsstring); format(coordsstring, sizeof(coordsstring), "{FF0000}Vehicul [slot #1]: %d | Vehicul [slot #2]: %d | Vehicul [slot #3]: %d | Skin: %d", PlayerInfo[targetid][pPcarkey], PlayerInfo[targetid][pPcarkey2],PlayerInfo[playerid][pPcarkey3],skin); strcat(string2, coordsstring); } ShowPlayerDialog(playerid,97,DIALOG_STYLE_MSGBOX,"Statistici cont",string2,"Iesire",""); } } new sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); printf("[DEBUG]: #ShowStats - %s", sendername); }[/pawn]
  14. Am mai postat odata pt. ca topicul de data trecuta a fost inchis fiindca nu am mai intrat sa il verific ca a fost forumul off.. Nick: dexter Problema: Am luat si eu GM Real Gaming si am gasit un BUG. Cand tastez stats ma pune sa aleg cum sa apara [text/dialog] . Sub forma de text merge foarte bine, dar cand aleg sa apara sub forma de dialog merge doar prima data cand dau /stats, dupa aceea, in chat scrie : 'SERVER: Unknowm command Erori / warnings: SERVER: Unknowm command Lini/script: x Ai incercat sa rezolvi singur ?: da Comanda : [pawn]if(PlayerInfo[playerid][pStats] == 2) { new string2[1152]; new coordsstring[1152]; new year, month, day; getdate(year,month,day); format(string2, sizeof(string2),"{FFFFFF}» STATISTICI CONT: {800000}%s {FFFFFF}- %d.%d.%d « \n", name, day, month, year); format(coordsstring, sizeof(coordsstring), "{FFFFFF}Level: {800000}%d {FFFFFF}| Sex: {800000}%s {FFFFFF}| Varsta: {800000}%d {FFFFFF}| Cash: {800000}$%s {FFFFFF}| Banca: {800000}$%s \n", level,atext,age,FormatNumber(cash),FormatNumber(account)); strcat(string2,coordsstring); format(coordsstring, sizeof(coordsstring), "{FFFFFF}Cont Premium: {800000}%s {FFFFFF}| Casatorit: {800000}%s {FFFFFF}| OreJucate: {800000}%d {FFFFFF}| Job: {800000}%s \n", drank,married,ptime,jtext); strcat(string2,coordsstring); format(coordsstring, sizeof(coordsstring), "{FFFFFF}Imprumut: {800000}%s${FFFFFF}/{800000}%s$ {FFFFFF}| {800000}FPunish: %d/40 {FFFFFF}| PuncteWanted: {800000}%d{FFFFFF}/6 | Tel: {800000}%d \n",FormatNumber(imprumutscazut),FormatNumber(imprumut),wanted, fpunish, pnumber); strcat(string2,coordsstring); format(coordsstring, sizeof(coordsstring), "{FFFFFF}Droguri: {800000}%d {FFFFFF}| Materiale: %d {FFFFFF}| Respect: {800000}%d{FFFFFF}/{800000}%d {FFFFFF}| Factiune: {800000}%s {FFFFFF}| Rang: {800000}%s \n",drugs,mats,exp, expamount,ttext,rtext,fwarn, warns); strcat(string2,coordsstring); format(coordsstring, sizeof(coordsstring), "{FFFFFF}Credit: {800000}%d mesaje/%d apeluri {FFFFFF}| PuncteRob: {800000}%d/10 {FFFFFF}| FWarns: {800000}%d/3 {FFFFFF}| Warns: {800000}%d/3 \n\n",sms, call, PRob, fwarn, warns); strcat(string2,coordsstring); if(PlayerInfo[playerid][pAdmin] >= 1) { format(coordsstring, sizeof(coordsstring), "{FF0000}Administrator: %d | HP: %.1f | Casa: %d | Afacere: %d | HireKey: %d | Interior: %d | Local: %d | IP: %s \n", PlayerInfo[targetid][pAdmin],health,housekey,bizkey,HireCar[targetid],intir,local,plrip); strcat(string2, coordsstring); format(coordsstring, sizeof(coordsstring), "{FF0000}Vehicul [slot #1]: %d | Vehicul [slot #2]: %d | Vehicul [slot #3]: %d | Skin: %d", PlayerInfo[targetid][pPcarkey], PlayerInfo[targetid][pPcarkey2],PlayerInfo[playerid][pPcarkey3],skin); strcat(string2, coordsstring); } ShowPlayerDialog(playerid,97,DIALOG_STYLE_MSGBOX,"Statistici cont",string2,"Iesire",""); } } new sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); printf("[DEBUG]: #ShowStats - %s", sendername); } [/pawn] [pawn]if (strcmp(cmd, "/stats", true) == 0) { if(IsPlayerConnected(playerid)) { if (gPlayerLogged[playerid] != 0) { ShowStats(playerid,playerid); } else { SendClientMessage(playerid, COLOR_GRAD1, "Nu esti logat!"); } } return 1; }[/pawn] PS: [pawn]ShowStats(playerid,playerid);[/pawn] nu il mai gasesc in alta parte decat in "/stats"
×
×
  • 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.