SA-MP Forums Archive
Help fast - 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: Help fast (/showthread.php?tid=557668)



Help fast - aCloudy - 14.01.2015

Hello.
can someone make me a "public" for InSupa[playerid] ?
I already defined: new InSupa[MAX_PLAYERS] = 0;

But can someone make me a public ?
InSupa = Interior 4, and World 7.

So, InSupa = IsPlayerWorld 4 and IsPlayerInterior 7.

Someone script it please!


Re: Help fast - bgedition - 14.01.2015

Try:
pawn Code:
forward InSupa(playerid);
public InSupa(playrid) {
    SetPlayerVirtualWorld(playrid, 4);
    SetPlayerInterior(playerid, 7);
    return 1;
}



Re: Help fast - aCloudy - 14.01.2015

Quote:
Originally Posted by bgedition
View Post
Try:
pawn Code:
forward InSupa(playerid);
public InSupa(playrid) {
    SetPlayerVirtualWorld(playrid, 4);
    SetPlayerInterior(playerid, 7);
    return 1;
}
No no.
I mean, InSupa = Check if the player is in world ID 4 and interior id 7, Not set ..


Re: Help fast - HY - 14.01.2015

pawn Code:
new World, Interior;
World = GetPlayerVirtualWorld(playerid);
Interior = GetPlayerInterior(playerid);
if(World == 4)
{
    if(Interior == 7)
    {
        // Code Here.
    }
}