Server tutorial
#1

Hey, I was wondering how i could have it so that once the user connects a tutorial pops up, using a timer and all that stuff, i don't know how to work with timers so i can't do it, so if someone could help me out and let me know where to put everything, I'd appreciate the help.

Also, please don't tell me use the godfathers tutorial system., because obviously If I'm only learning then that won't help.

common sense.

regards,
Keujh
Reply
#2

u can use under : OnPlayerConnect :

SendClientMessage(playerid, color, "type /help for command or whatever u want);
SendClientMessage(playerid, color, "type /help for command or whatever u want);
SendClientMessage(playerid, color, "type /help for command or whatever u want);
SendClientMessage(playerid, color, "type /help for command or whatever u want);

u can add as many messages as u want under OnPlayerConnect
________
SHIP SALE
Reply
#3

that's good but how would i do that but with a timer, between each message?

For example:

SendClientMessage(playerid, color, "type /help for command or whatever u want);
// timer = 5secs
SendClientMessage(playerid, color, "type /help for command or whatever u want);
// timer = 5secs
SendClientMessage(playerid, color, "type /help for command or whatever u want);
// timer = 5secs
SendClientMessage(playerid, color, "type /help for command or whatever u want);
Reply
#4

oh u mean a random message which appear in the server like :

[NEWS] Server Updated ,

then after 1 minute

[NEWS]Admin Application are opened

??
________
Coach handbags
Reply
#5

Quote:
Originally Posted by keujh
that's good but how would i do that but with a timer, between each message?

For example:

SendClientMessage(playerid, color, "type /help for command or whatever u want);
// timer = 5secs
SendClientMessage(playerid, color, "type /help for command or whatever u want);
// timer = 5secs
SendClientMessage(playerid, color, "type /help for command or whatever u want);
// timer = 5secs
SendClientMessage(playerid, color, "type /help for command or whatever u want);
This is just an example for random messages, you can easily change it if you want - https://sampwiki.blast.hk/wiki/Random_Messages
Reply
#6

Nah, that's not what i meant.

Maybe i can give you a better example.

Okay you know how, on most Roleplay servers theres a tutorial in the beginning, after the user has logged in etc, well I'm trying to do that, so that automatically onplayerconnect it will start the tutorial, the user will be frozen and the Sendclientmessage will appear one after another, In a row order by message.

So for example:
Code:
SendClientMessage(playerid, color, "=========Tutorial=========);
//a delay of 5 seconds, before the next message appears.
SendClientMessage(playerid, color, "=========HACKING=========);
SendClientMessage(playerid, color, "Obviously there is no hacking allowed here, and if you are caught you will be banned permanently no warnings.);
SendClientMessage(playerid, color, "Client modification such as vehicle mods, weapon mods, etc, is technically the same as hacking, so no client modifications, the same rules apply as the above rule.);
//a delay of 5 seconds, before the next message appears.
SendClientMessage(playerid, color, "=========DEATH MATCHING=========);
SendClientMessage(playerid, color, "This is a roleplay server, although we do allow death matches, but only at a certain time during the day, and at a specific place, in the los santos city. if you are caught dming else where, you will be banned after 3 warnings.);
Basically that's what i want done.. i hope that's a good enough explanation,

Reply
#7

BUMP!!!
Reply
#8

I hate to be annoying, but i really need to get this done.. so please will someone reply! :P
Reply
#9

You're also gonna need to check if the player has done the tutorial, so it doesn't come up every time you log in.
Reply
#10

Yeah, i think i figured out how i can do it. but if i use the random message thing to do it how the heck am i suppose to make it so that it's not random.?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)