Quote:
Originally Posted by [HiC
TheKiller ]
Use dini and use the function dini_Int.
|
Sorry, but that doesn't really help.. considering i don't work with dini.
Let me explain to you what i need to do.
I have a tutorial script, This is it.
Onplayerspawn
Код:
public OnPlayerSpawn(playerid)
{
if(gPlayerLogged[playerid])
{
SetPlayerSpawn(playerid);
SetTimer("tuttimestp1",1000,false);
SetTimer("tuttimestp2",15000,false);
SetTimer("tuttimestp3",25000,false);
SetTimer("tuttimestp4",35000,false);
SetTimer("tuttimestp5",45000,false);
SetTimer("tuttimestp6",55000,false);
}
return 1;
}
The Tutorial Steps
Код:
public tuttimestp1(playerid)
{
TogglePlayerControllable(playerid,0);
SendClientMessage(playerid, COLOR_RED, "===========[TUTORIAL]===========");
}
public tuttimestp2(playerid)
{
SendClientMessage(playerid, COLOR_GREEN, "===========[HACKING]===========");
SendClientMessage(playerid, COLOR_WHITE, "Obviously hacking is now allowed.");
SendClientMessage(playerid, COLOR_WHITE, "hacking will result in a permanent ban. there's no warning(s)");
SendClientMessage(playerid, COLOR_WHITE, "Client Modification is strictly forbidden.");
SendClientMessage(playerid, COLOR_WHITE, "Which means, Vehicle Mods, Weapons Mods, ETC.");
SendClientMessage(playerid, COLOR_WHITE, "It's technically the same as hackin' so no mods!");
SendClientMessage(playerid, COLOR_WHITE, "If you see someone hacking, please use /report to report them.");
SendClientMessage(playerid, COLOR_WHITE, "You can also post a complaint on the forums regarding a user.");
}
public tuttimestp3(playerid)
{
SendClientMessage(playerid, COLOR_GREEN, "===========[RESPECT]===========");
SendClientMessage(playerid, COLOR_WHITE, "You must respect everyone at all times, and not just administrators.");
SendClientMessage(playerid, COLOR_WHITE, "Respect is one of those things, that will get you to the top.");
SendClientMessage(playerid, COLOR_WHITE, "Give respect and you'll recieve it.");
SendClientMessage(playerid, COLOR_WHITE, "The more respect you got the more famous you become, people will trust you.");
SendClientMessage(playerid, COLOR_WHITE, "If you've been disrepected in anyway, please post a complaint on the forums.");
}
public tuttimestp4(playerid)
{
SendClientMessage(playerid, COLOR_GREEN, "===========[METAGAMING]===========");
SendClientMessage(playerid, COLOR_WHITE, "killing or attacking of others with no reason of role-play ~n(i.e. blatantly shooting, punching, beating, ramming or generally attacking someone)");
SendClientMessage(playerid, COLOR_WHITE, "Car DMing is Death Matching by continuously ramming, or parking on top of someone with a car.");
SendClientMessage(playerid, COLOR_WHITE, "You CAN NOT drive-by from the driver's seat of a car unless you are in the police department or military. ~nHowever, everyone can drive-by if and only if they are in the passenger seat of a car.");
SendClientMessage(playerid, COLOR_WHITE, "Breaking these rules, will result in a ban/kick.");
}
public tuttimestp5(playerid)
{
SendClientMessage(playerid, COLOR_GREEN, "===========[REVENGEKILLING]===========");
SendClientMessage(playerid, COLOR_WHITE, "The killing or attempted killing of an individual that has killed you. ~n(I.e. You can't die in a gun fight and come back to kill the individual that killed you. ");
SendClientMessage(playerid, COLOR_WHITE, "The only exception to this is a gang war or family war, in which members of opposing gangs/families can ~nkill each other at any time, without being considered for RK, for as long as the war goes on. ~nThis does not apply to civilian gangs (unscripted gangs) ");
SendClientMessage(playerid, COLOR_WHITE, "Breaking these rules, will result in a ban/kick.");
SendClientMessage(playerid, COLOR_WHITE, "If you need support, please visit our forums.");
SendClientMessage(playerid, COLOR_WHITE, "If you need to report someone, please use /report or post a complaint on the forums.");
}
public tuttimestp6(playerid)
{
SendClientMessage(playerid, COLOR_GREEN, "===========[END OF TUTORIAL]===========");
SendClientMessage(playerid, COLOR_WHITE, "Now wasn't that simple. ");
SendClientMessage(playerid, COLOR_WHITE, "For more information on support or rules please visit our forums.");
SendClientMessage(playerid, COLOR_WHITE, "You can also use /rules to see a list of rules.");
SendClientMessage(playerid, COLOR_WHITE, "Please be aware of what goes on in the community, at all times.");
SendClientMessage(playerid, COLOR_WHITE, "And remember to always roleplay, to that is the key of roleplay. ~n but most importantly HAVE FUN!");
TogglePlayerControllable(playerid,1);
}
Forwards
Код:
forward tuttimestp1(playerid);
forward tuttimestp2(playerid);
forward tuttimestp3(playerid);
forward tuttimestp4(playerid);
forward tuttimestp5(playerid);
forward tuttimestp6(playerid);
Now that's the whole tutorial script, how could i make it so that in an ini file it would say like Tutorial = 1 to mean that it's already been done, and Tutorial = 0 to me that it hasn't been done, and when the user connects it makes him/her go through the tutorial, before being able to play.
That good enough?
anyways, all the best and i hope that someone can help me with this.