Jump to content
  • 0

[Problema] Bug REGISTER/LOGIN (URGENT)


tagarta

Question

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 !

ID messenger: yo.ady95 @yahoo.com .

Pentru informa?ii , ad?uga?i-m? !

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

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?

ID messenger: yo.ady95 @yahoo.com .

Pentru informa?ii , ad?uga?i-m? !

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.