10.07.2010, 20:42
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;
}