14.12.2012, 10:28
pawn Код:
if (strcmp(cmdtext, "/battle" , true) == 0)
{
SendClientMessage(playerid, blue, "You were teleported to the battle field!");
SetTimerEx("Teleport", 6000, false, "i", playerid);
new string[52], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof string, "%s was teleported to the battlefield!", name);
SendClientMessageToAll(ltblue, string);
return 1;
}
forward Teleport(playerid);
public Teleport(playerid)
{
SetPlayerPos(playerid, 1760.2731,201.5875,25.8611);
return 1;
}
Sure this'll work.