A teleport command!
#1

Hy all!
How i know to make a teleport command to this pos. 2687.509521 -1707.958984 1654.909912?
and the command is /air?
i tryed but the server dont make anything...here my vers.


public OnPlayerCommandText(playerid, cmdtext[])
if(!strcmp(cmdtext, "/air"))
{
SetPlayerPos(playerid, 2687.509521 -1707.958984 1654.909912);
GameTextForPlayer(playerid, "Ьdv. AirCityben!", 1, );
return 1;
}

Reply
#2

Change:

Code:
public OnPlayerCommandText(playerid, cmdtext[])
if(!strcmp(cmdtext, "/air"))
  {
   SetPlayerPos(playerid, 2687.509521 -1707.958984 1654.909912);
   GameTextForPlayer(playerid, "Ьdv. AirCityben!", 1, );
    return 1;
  }
To

Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/air"))
  {
   SetPlayerPos(playerid, 2687.509521 -1707.958984 1654.909912);
   GameTextForPlayer(playerid, "Ьdv. AirCityben!", 1, );
    return 1;
  }
Reply
#3

dont work
Reply
#4



Try This

Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd,"/air",true)==0)
  {
   SetPlayerPos(playerid, 2687.509521 -1707.958984 1654.909912);
   GameTextForPlayer(playerid, "Ьdv. AirCityben!", 1, );
    return 1;
  }
Reply
#5

Quote:
Originally Posted by Compton's Eazy E

Try This

Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd,"/air",true)==0)
 {
   SetPlayerPos(playerid, 2687.509521 -1707.958984 1654.909912);
   GameTextForPlayer(playerid, "Ьdv. AirCityben!", 1, );
   return 1;
 }
nub >_<
Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext,"/air",true,4))
 {   
   GameTextForPlayer(playerid, "Ьdv. AirCityben!", 1, );
   return SetPlayerPos(playerid, 2687.509521, -1707.958984, 1654.909912);
 }
Reply
#6

Quote:
Originally Posted by [RD
Chez ]
Quote:
Originally Posted by Compton's Eazy E

Try This

Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd,"/air",true)==0)
 {
   SetPlayerPos(playerid, 2687.509521 -1707.958984 1654.909912);
   GameTextForPlayer(playerid, "Ьdv. AirCityben!", 1, );
   return 1;
 }
nub >_<
Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext,"/air",true,4))
 {   
   GameTextForPlayer(playerid, "Ьdv. AirCityben!", 1, );
   return SetPlayerPos(playerid, 2687.509521, -1707.958984, 1654.909912);
 }
Nub.... Thanks for the comment, It doesnt matter, if you change 0 to 4 it still works!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)