Need Help in scripting
#1

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?
Reply
#2

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)