SA-MP Forums Archive
spawn problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: spawn problem (/showthread.php?tid=351496)



spawn problem - Snir_sofer - 16.06.2012

PHP код:
    if(pInfo[playerid][ZoneID] != 0)
    {
        for(new 
ii<sizeof(STeleZone); i++)
        {
            
ResetPlayerWeapons(playerid);
            if(
STeleZone[i][Weap1] > 0)GivePlayerWeapon(playerid,STeleZone[i][Weap1],STeleZone[i][Ammo1]);
            if(
STeleZone[i][Weap2] > 0)GivePlayerWeapon(playerid,STeleZone[i][Weap2],STeleZone[i][Ammo2]);
            if(
STeleZone[i][Weap3] > 0)GivePlayerWeapon(playerid,STeleZone[i][Weap3],STeleZone[i][Ammo3]);
            if(
STeleZone[i][Weap4] > 0)GivePlayerWeapon(playerid,STeleZone[i][Weap4],STeleZone[i][Ammo4]);
            if(
STeleZone[i][Weap5] > 0)GivePlayerWeapon(playerid,STeleZone[i][Weap5],STeleZone[i][Ammo5]);
            
SetPlayerInAreaEx(playerid,STeleZone[i][ZoneMinX],STeleZone[i][ZoneMinY],STeleZone[i][ZoneMaxX],STeleZone[i][ZoneMaxY]);
        }
    } 
this not working :\
Help me please..


Re: spawn problem - tiernantheman - 16.06.2012

Try this
pawn Код:
for(new i = 0; i < sizeof(STeleZone); i++)



Re: spawn problem - Snir_sofer - 16.06.2012

not Working.. :X