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 .