SA-MP Forums Archive
Server Scripting (Need Help) - 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: Server Scripting (Need Help) (/showthread.php?tid=345323)



Server Scripting (Need Help) - xSiiLenTx - 24.05.2012

Firstly, I have some issues that I'd like help on.

1. How would I get this to move, as it's a gate for the LSPD?
Код:
CreateObject(968,1544.80004883,-1630.69995117,13.30000019,90.00000000,180.00000000,0.00000000); //object(barrierturn) (1)
CreateObject(983,1544.50000000,-1636.00000000,13.19999981,0.00000000,0.00000000,0.00000000); //object(fenceshit3) (1)
CreateObject(983,1544.50000000,-1620.80004883,13.19999981,0.00000000,0.00000000,0.00000000); //object(fenceshit3) (2)
CreateObject(982,1537.50000000,-1672.80004883,13.19999981,0.00000000,0.00000000,0.00000000); //object(fenceshit) (2)
CreateObject(983,1592.50000000,-1605.69995117,13.19999981,0.00000000,0.00000000,0.00000000); //object(fenceshit3) (3)
CreateObject(983,1597.40002441,-1605.59997559,13.10000038,0.00000000,0.00000000,0.00000000); //object(fenceshit3) (4)
CreateObject(983,1602.09997559,-1605.59997559,13.19999981,0.00000000,0.00000000,0.00000000); //object(fenceshit3) (5)
CreateObject(983,1588.00000000,-1605.50000000,13.19999981,0.00000000,0.00000000,0.00000000); //object(fenceshit3) (6)
CreateObject(969,1584.69995117,-1638.09997559,12.39999962,0.00000000,0.00000000,0.00000000); //object(electricgate) (1)
CreateObject(969,1584.69995117,-1638.30004883,15.69999981,0.00000000,0.00000000,0.00000000); //object(electricgate) (2)
CreateObject(3029,1582.50000000,-1638.00000000,12.39999962,0.00000000,0.00000000,268.00000000); //object(cr1_door) (1)
CreateObject(1491,1577.30004883,-1637.30004883,12.60000038,0.00000000,0.00000000,90.00000000); //object(gen_doorint01) (1)
I'd like it to move up/down with the command /gate for police officers

2. How would I reserve cars just for the faction that they're for, like LSFD, etc?

3. How would I save edits that I've created for role play scripts? If you could help me with this, it'd be awesome.

4. How do I make events where it teleports you? Like I teleport people to me, and we begin the event. Is there a code that would tele every body to me?.

5. How do I make markers that show up on the map, like LSFMD shows a red cross etc?


Re: Server Scripting (Need Help) - leonardo1434 - 24.05.2012

1 - use this function https://sampwiki.blast.hk/wiki/Automatic_Gates

2 -use this tutorial pretty simple https://sampforum.blast.hk/showthread.php?tid=300316

3 - i don't get what you mean...

4 - Here is the CMD to get all.
pawn Код:
CMD:getall(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 7)
    {
        new Float:x,Float:y,Float:z, interior = GetPlayerInterior(playerid);
        GetPlayerPos(playerid,x,y,z);
        new pCount;
        for(new i = 0; i < MAX_PLAYERS; i++)
            {
                    if(!IsPlayerConnected(i) || i == playerid) continue;
                    pCount++;
                    PlayerPlaySound(i,1057,0.0,0.0,0.0);
                    SetPlayerPos(i,x+(playerid/4)+1,y+(playerid/4),z);
                    SetPlayerInterior(i,interior);
            }
        if(pCount == 0) return SendClientMessage(playerid,COLOR_RED,"No players online!");
        new string[128];
        format(string,sizeof(string),"|| Administrator %s has teleported all players! ||", Name(playerid));
        SendClientMessageToAll(COLOR_LIGHTBLUE, string);
    }
    else return SendClientMessage(playerid,COLOR_RED,"You need to be level 7 to use that command!");
    return 1;
}
5 - Here is the function to make Icons https://sampwiki.blast.hk/wiki/SetPlayerMapIcon


Re: Server Scripting (Need Help) - xSiiLenTx - 24.05.2012

can you help me on skype or teamviewer or something? THanks


Re: Server Scripting (Need Help) - leonardo1434 - 24.05.2012

Take a look at my signature...


Re: Server Scripting (Need Help) - xSiiLenTx - 24.05.2012

Sent an email