help blz I want to add commands
#1

Hello

I want to add commands for each place

Like

/ls

/sf

/lv

can any one help me blz

and thnx
Reply
#2

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
Reply
#3

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

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

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.
Reply
#6

player teleport and admin
Reply
#7

iam not under stand setplayerspos
Reply
#8

Do you have msn or something?
Reply
#9

i have yahoo
Reply
#10

i add you
Reply
#11

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
Reply
#12

alking so u dont need help anymore?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)