[Pomoc]Intovi

Započeo Mladen Smiljan, Jul 01, 2011, 14:39:19 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Call of Duty
Detaljan opis problema: Opet isti problem sa intovima kad izadjem porta me drugdje... evo sistema to sam nesto nazvrljo
Dio skripte: //---------------------Gun1-----------------------------
if (strcmp("/enter", cmdtext, true, 6) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,4,1329.3047,-984.6932,33.8966))
            {
            SetPlayerInterior( playerid, 6);
            SetPlayerVirtualWorld(playerid, 1);
                SetPlayerPos(playerid,296.9541,-111.4377,1001.5156);
                return 1;
            }
    }
if (strcmp("/exit", cmdtext, true, 6) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,4,296.9541,-111.4377,1001.5156))
            {
            SetPlayerInterior( playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
                SetPlayerPos(playerid,1329.3047,-984.6932,33.8966);
                return 1;
            }
    }
//----------------------------Gun2-------------------------
if (strcmp("/enter", cmdtext, true, 6) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,4,2288.2739,-1104.6682,38.5929))
            {
            SetPlayerInterior( playerid, 1);
            SetPlayerVirtualWorld(playerid, 2);
                SetPlayerPos(playerid,286.148986,-40.644397,1001.515625);
                return 1;
            }
    }
if (strcmp("/exit", cmdtext, true, 6) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,4,286.148986,-40.644397,1001.515625))
            {
            SetPlayerInterior( playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
                SetPlayerPos(playerid,2288.2739,-1104.6682,38.5929);
                return 1;
            }
    }
//-------------------------Gun3-----------------------------
if (strcmp("/enter", cmdtext, true, 6) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,4,1368.6553,-1280.0128,13.5469))
            {
            SetPlayerInterior( playerid, 7);
            SetPlayerVirtualWorld(playerid, 3);
                SetPlayerPos(playerid,314.820983,-141.431991,999.601562);
                return 1;
            }
    }
if (strcmp("/exit", cmdtext, true, 6) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,4,314.820983,-141.431991,999.601562))
            {
            SetPlayerInterior( playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
                SetPlayerPos(playerid,1368.6553,-1280.0128,13.5469);
                return 1;
            }
    }
//---------------------------Gun4----------------------
if (strcmp("/enter", cmdtext, true, 6) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,4,2114.8608,-1742.4626,13.5547))
            {
            SetPlayerInterior( playerid, 6);
            SetPlayerVirtualWorld(playerid, 4);
                SetPlayerPos(playerid,316.524993,-167.706985,999.593750);
                return 1;
            }
    }
if (strcmp("/exit", cmdtext, true, 6) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,4,316.524993,-167.706985,999.593750))
            {
            SetPlayerInterior( playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
                SetPlayerPos(playerid,2114.8608,-1742.4626,13.5547);
                return 1;
            }
    }
//------------------------Gun5--------------------------------------
if (strcmp("/enter", cmdtext, true, 6) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,4,1833.5273,-1842.8344,13.5781))
            {
            SetPlayerInterior( playerid, 1);
            SetPlayerVirtualWorld(playerid, 5);
                SetPlayerPos(playerid,286.148986,-40.644397,1001.515625);
                return 1;
            }
    }
if (strcmp("/exit", cmdtext, true, 6) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,4,286.148986,-40.644397,1001.515625))
            {
            SetPlayerInterior( playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
                SetPlayerPos(playerid,1833.5273,-1842.8344,13.5781);
                return 1;
            }
    }
//------------------------Gun6----------------------------------
if (strcmp("/enter", cmdtext, true, 6) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,4,822.8162,-1756.9106,13.6546))
            {
            SetPlayerInterior( playerid, 4);
            SetPlayerVirtualWorld(playerid, 6);
                SetPlayerPos(playerid,286.800994,-82.547599,1001.515625);
                return 1;
            }
    }
if (strcmp("/exit", cmdtext, true, 6) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,4,286.800994,-82.547599,1001.515625))
            {
            SetPlayerInterior( playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
                SetPlayerPos(playerid,822.8162,-1756.9106,13.6546);
                return 1;
            }
    }
//-----------------------------Gun7-----------------------
if (strcmp("/enter", cmdtext, true, 6) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,4,2655.0325,-1095.5955,69.6030))
            {
            SetPlayerInterior( playerid, 6);
            SetPlayerVirtualWorld(playerid, 7);
                SetPlayerPos(playerid,296.919982,-108.071998,1001.515625);
                return 1;
            }
    }
if (strcmp("/exit", cmdtext, true, 6) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,4,296.919982,-108.071998,1001.515625))
            {
            SetPlayerInterior( playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
                SetPlayerPos(playerid,2655.0325,-1095.5955,69.6030);
                return 1;
            }
    }


Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Poslednja Izmena: Jul 01, 2011, 14:39:39 POSLE PODNE od Mladen Smiljan
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%

Zasto imas vise komandi /enter,to stavi u else if i else

Napravi ovako:



if(strcmp("/enter", cmdtext, true, 6) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid, 3, 1467.3046, -1009.9215, 26.8438))\\Banka na primer
    {
        SetPlayerPos(playerid, 246.6466, 107.6561, 1003.2188);
        SetPlayerInterior(playerid,10);
    }
    if(IsPlayerInRangeOfPoint(playerid, 3, 1230.6512,-1381.3033,14.6209))\\PD ulaz na primer
    {
        SetPlayerPos(playerid, 387.4467, 2324.5640, 1889.5835);
        SetPlayerInterior(playerid,11);
    }
    return 1;
}


Isto tako i za exit

if(strcmp("/enter", cmdtext, true, 6) == 0) 

    if(IsPlayerInRangeOfPoint(playerid, 3, 1467.3046, -1009.9215, 26.8438))\\Banka na primer 
    { 
        SetPlayerPos(playerid, 246.6466, 107.6561, 1003.2188); 
        SetPlayerInterior(playerid,10); 
    } 
    if(IsPlayerInRangeOfPoint(playerid, 3, 1230.6512,-1381.3033,14.6209))\\PD ulaz na primer 
    { 
        SetPlayerPos(playerid, 387.4467, 2324.5640, 1889.5835); 
        SetPlayerInterior(playerid,11); 
    } 
    return 1; 
}


To ti ne radi ;(((
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%