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



Server Scripting Help - walkingstorm - 12.11.2011

Hi guys... I maked a server and now i need scripts...Can someone script First i need scripts for teleports : /SFA /LSA /LVA then i need for /AFK /BAck and i have other 1 problem HOUSEs are not buyablle. + i want to add some businees and 1 more script /cars for cars menu ...Please Help me...


Re: Server Scripting Help - Chrillzen - 12.11.2011

Go in-game and use /save to save co-ordinates then make a command for teleports.

XYZ = Your co-ordinates.

Код:
if(!strcmp(cmdtext,"/LVA",true))
    {            
        SetPlayerPos(playerid, X, Y, Z);
        return 1;
    }
Код:
if(!strcmp(cmdtext,"/SFA",true))
    {            
        SetPlayerPos(playerid, X, Y, Z);
        return 1;
    }
Код:
if(!strcmp(cmdtext,"/LSA",true))
    {            
        SetPlayerPos(playerid, X, Y, Z);
        return 1;
    }



Re: Server Scripting Help - walkingstorm - 12.11.2011

Yes and please help about houses and biz and script about /cars and /afk /back
Thank youu !


Re: Server Scripting Help - Kostas' - 12.11.2011

Use Search and I am sure that you will find some of them!


Re: Server Scripting Help - sniperwars - 12.11.2011

Quote:
Originally Posted by walkingstorm
Посмотреть сообщение
Yes and please help about houses and biz and script about /cars and /afk /back
Thank youu !
Okay, do you have team viewer ?


Re: Server Scripting Help - walkingstorm - 12.11.2011

Chillzen i dont understand nothing but sniperwars will send me the scripts...


Re: Server Scripting Help - Tigerkiller - 12.11.2011

before you start owning a server learn to script! otherwise ****** and the search function are your friends!


Re: Server Scripting Help - Chrillzen - 12.11.2011

AFK & Back


Код:
     if(strcmp(cmdtext, "/afk", true) == 0)
     {
          TogglePlayerControllable(playerid,0);
          new name[MAX_PLAYER_NAME], string[44];
          GetPlayerName(playerid, name, sizeof(name));
          format(string, sizeof(string), "%s is now afk.",name);
          SendClientMessageToAll(0xFFFF00AA, string);
          return 1;
     }
     if(strcmp(cmdtext, "/back", true) == 0)
     {
          TogglePlayerControllable(playerid,1);
          new name[MAX_PLAYER_NAME], string[44];
          GetPlayerName(playerid, name, sizeof(name));
          format(string, sizeof(string), "%s is now back.",name);
          SendClientMessageToAll(0xFFFF00AA, string);
          return 1;
     }



Re: Server Scripting Help - sniperwars - 12.11.2011

Quote:
Originally Posted by walkingstorm
Посмотреть сообщение
Chillzen i dont understand nothing but sniperwars will send me the scripts...
Just PM me your team viewer ID and pass and I'll give you the scripts.


Re: Server Scripting Help - sniperwars - 12.11.2011

Quote:
Originally Posted by walkingstorm
Посмотреть сообщение
Chillzen i dont understand nothing but sniperwars will send me the scripts...
I guess you guys didn't understand what he said.