HELP ASAP PLEASE - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HELP ASAP PLEASE (
/showthread.php?tid=418714)
HELP ASAP PLEASE -
Ananisiki - 25.02.2013
^^^^^^^^
Re: HELP ASAP PLEASE -
Blast3r - 25.02.2013
pawn Код:
public IntroRulesText(playerid)
{
new rules[128]
format(rules, sizeof rules, "~r~NO ~w~Cheating.~n~~n~~r~NO ~w~NO Teaming.~n~~n~Do ~r~NOT ~w~Abuse Commands.~n~~n~Always Respect Admins And Players.~n~~n~~r~NO ~w~DO NOT Teleport To Avoid Death.~n~~n~Drive properly.~n~~n~~r~NO ~w~Bug Exploiting.~n~~n~Do ~r~NOT ~w~Quit / Pause To Avoid.");
introRules[playerid] = TextDrawCreate(320, 160, rules);
TextDrawLetterSize(introRules[playerid], 0.9, 1.8);
TextDrawTextSize(introRules[playerid], 440.0, 600.0);
TextDrawAlignment(introRules[playerid], 2);
TextDrawUseBox(introRules[playerid], true);
TextDrawBoxColor(introRules[playerid], COLOR_BLACK);
TextDrawSetShadow(introRules[playerid], 0);
TextDrawFont(introRules[playerid], 1);
TextDrawSetProportional(introRules[playerid], true);
}
Try that?
Re: HELP ASAP PLEASE -
Ananisiki - 25.02.2013
^^^^^^^^
Re: HELP ASAP PLEASE -
Ananisiki - 25.02.2013
^^^^^^^^
Re: HELP ASAP PLEASE -
Ananisiki - 25.02.2013
^^^^^^^^
Re: HELP ASAP PLEASE -
Blaeks - 25.02.2013
display textdraw under onplayerconnect , and then a timer of 5 seconds display dialog logins
sory for bad english
Re: HELP ASAP PLEASE -
Ananisiki - 25.02.2013
^^^^^^^^
Re: HELP ASAP PLEASE -
Blaeks - 25.02.2013
define that at first
Код:
#define ClearChat(%0) for(new i=0; i<20; i++) SendClientMessage(%0, -1, " ")
now create a callback
Код:
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;
}
and now public function
Код:
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;
}