Help with an command
#4

Quote:
Originally Posted by Adil
Посмотреть сообщение
Put this on 'OnPlayerCommandText'.
pawn Код:
new playername[MAX_PLAYER_NAME];
pawn Код:
if(strcmp(cmd, "/drift", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            SetPlayerPos(playerid, 0.0, 0.0, 0.0);// Set this to the Sf position you want the player to Tp to.
            GetPlayerName(playerid, playername, sizeof(playername));
            format(string, sizeof(string),"%s has teleported to San Fierro.", playername);
            SendClientMessageToAll(0xFFFFFFFF,string);
        }
        return 1;
    }
Thanks , but i need for all comands on my server , not only 1 .
Reply


Messages In This Thread
Help with an command - by valentinorossi16 - 10.07.2010, 20:25
Re: Help with an command - by Cameltoe - 10.07.2010, 20:35
Re: Help with an command - by Adil - 10.07.2010, 20:42
Re: Help with an command - by valentinorossi16 - 10.07.2010, 20:46
Re: Help with an command - by MikkelGutten - 10.07.2010, 20:49
Re: Help with an command - by [DK]JaloNik - 10.07.2010, 20:51
Re: Help with an command - by valentinorossi16 - 10.07.2010, 20:59
Re: Help with an command - by [DK]JaloNik - 10.07.2010, 21:00

Forum Jump:


Users browsing this thread: 2 Guest(s)