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



Need Help in scripting - newbie scripter - 26.04.2012

Im new here and i want to learn scripting and with my name itself u can tell how i will be but i kbow how to make tp places and some can anyone teach me?


Re: Need Help in scripting - Shabi RoxX - 26.04.2012

Start from here :
https://sampwiki.blast.hk/


Commands:
https://sampwiki.blast.hk/wiki/Creating_Commands

https://sampwiki.blast.hk/wiki/SetPlayerPos

Example:
pawn Код:
if(!strcmp(cmdtext, "/teleport"))//cmd structure
     {
        SetPlayerPos(playerid,0.0,0.0,3.0);//setting player pos to X,Y,Z cords change it to your cords
        SendClientMessage(playerid, 0xFFFFFFFF, "Hello Player!");//This will send message to player who will use this command , playeris id id of player , 0xFFFFFFFF is color and  then message
        return 1;
     }
A Tutorial :
http://forum.sa-mp.com/showthread.ph...light=teleport (By captainjohn)