15.08.2011, 18:08
Hello
I want to add commands for each place
Like
/ls
/sf
/lv
can any one help me blz
and thnx
I want to add commands for each place
Like
/ls
/sf
/lv
can any one help me blz
and thnx
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;
}
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;
}
Copy and paste all this:
pawn Код:
|