Help me, teleport command.
#1

Hey guys, I made a teleport command script which teleports you to the co-ordinates you chose.

PHP код:
    if(strcmp(cmd"/xgoto"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
         if(
PlayerInfo[playerid][pAdmin] < 5)
        {
            
SendClientMessage(playerid,COLOR_GRAD2,"Permission Denied.");
            return 
1;
        }
        }
    new 
Float:xFloat:yFloat:z;
    new 
string[100];
    
tmp strtok(cmdtextidx);
    if(!
strlen(tmp))
    {
        
SendClientMessage(playeridCOLOR_GRAD2"Usage: /xgoto <X Float> <Y Float> <Z Float>");
        return 
1;
        }
     return 
1;
    } 
It's not working, please help me to find the mistake and how I can fix it?
Thanks in advance, volcaN131.
Reply


Messages In This Thread
Help me, teleport command. - by volcaN131 - 26.06.2013, 10:55
Re: Help me, teleport command. - by SMW - 26.06.2013, 11:08
Re: Help me, teleport command. - by volcaN131 - 26.06.2013, 11:22
Re: Help me, teleport command. - by SMW - 26.06.2013, 11:33

Forum Jump:


Users browsing this thread: 1 Guest(s)