25.02.2013, 22:37
define that at first
now create a callback
and now public function
Код:
#define ClearChat(%0) for(new i=0; i<20; i++) SendClientMessage(%0, -1, " ")
Код:
public OnPlayerRequestClass(playerid, classid) { SetSpawnInfo(playerid, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0); SetTimerEx("login_dialog", 5000, 0, "i", playerid); // here textdraw return 1; }
Код:
forward login_dialog(playerid); public login_dialog(playerid) { SetPlayerCameraPos(playerid, x, y, z); SetPlayerCameraLookAt(playerid, x, y, z); // Show dialogs etc. here ClearChat(playerid); // Custom macro to send some empty clientmessages return 1; }