09.01.2010, 06:52
puedes intentar esto:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/miteleport", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, x, y, z);
SetTimerEx("Timer", 3000, 0, "d", playerid);
return 1;
}
return 0;
}
forward Timer(playerid);
public Timer(playerid)
{
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~w~Cargando Objetos...", 3000, 0);
SetTimerEx("Timer2", 1, 0, "d", playerid);
}
forward Timer2(playerid);
public Timer2(playerid)
{
TogglePlayerControllable(playerid, 1);
}