SA-MP Forums Archive
help blz I want to add commands - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help blz I want to add commands (/showthread.php?tid=276905)



help blz I want to add commands - alking282 - 15.08.2011

Hello

I want to add commands for each place

Like

/ls

/sf

/lv

can any one help me blz

and thnx


Re: help blz I want to add commands - grand.Theft.Otto - 15.08.2011

pawn Код:
if(!strcmp(cmdtext, "/ls", true, 3))
{
    SetPlayerPos(playerid,1480.1586,-1656.4243,14.0469);
    return 1;
}

if(!strcmp(cmdtext, "/sf", true, 3))
{
    SetPlayerPos(playerid,-1989.9713,137.5744,27.5391);
    return 1;
}

if(!strcmp(cmdtext, "/lv", true, 3))
{
    SetPlayerPos(playerid,2049.3337,1332.8530,10.6719);
    return 1;
}
Next time use this:

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


Re: help blz I want to add commands - alking282 - 15.08.2011

iam not under stand can you add me it in team viwer


Re: help blz I want to add commands - James_Bourne - 15.08.2011

What do you want it as normal player teleport or admin teleport?


Re: help blz I want to add commands - grand.Theft.Otto - 15.08.2011

Copy and paste all this:

pawn Код:
if(!strcmp(cmdtext, "/ls", true, 3)) // command name and length number
{
    SetPlayerPos(playerid,1480.1586,-1656.4243,14.0469); // setting player to these coordinates
    return 1;
}

if(!strcmp(cmdtext, "/sf", true, 3))
{
    SetPlayerPos(playerid,-1989.9713,137.5744,27.5391);
    return 1;
}

if(!strcmp(cmdtext, "/lv", true, 3))
{
    SetPlayerPos(playerid,2049.3337,1332.8530,10.6719);
    return 1;
}
and paste it under OnPlayerCommandText.


Re: help blz I want to add commands - alking282 - 15.08.2011

player teleport and admin


Re: help blz I want to add commands - alking282 - 15.08.2011

iam not under stand setplayerspos


Re: help blz I want to add commands - James_Bourne - 15.08.2011

Do you have msn or something?


Re: help blz I want to add commands - alking282 - 15.08.2011

i have yahoo


Re: help blz I want to add commands - alking282 - 15.08.2011

i add you


Re: help blz I want to add commands - alking282 - 15.08.2011

Quote:
Originally Posted by grand.Theft.Otto
Посмотреть сообщение
Copy and paste all this:

pawn Код:
if(!strcmp(cmdtext, "/ls", true, 3)) // command name and length number
{
    SetPlayerPos(playerid,1480.1586,-1656.4243,14.0469); // setting player to these coordinates
    return 1;
}

if(!strcmp(cmdtext, "/sf", true, 3))
{
    SetPlayerPos(playerid,-1989.9713,137.5744,27.5391);
    return 1;
}

if(!strcmp(cmdtext, "/lv", true, 3))
{
    SetPlayerPos(playerid,2049.3337,1332.8530,10.6719);
    return 1;
}
and paste it under OnPlayerCommandText.
thx you man and commant


Re: help blz I want to add commands - James_Bourne - 15.08.2011

alking so u dont need help anymore?