Jump to content

Question

Posted (edited)

Eu pe server am adăugat un System de tutorial și nu îmi apare ce trebuie de făcut si am nevoie de ajutor 

HAndreiH#2247 

Dacă se poate ma puteți ajuta 

Edited by HAndreiH

3 answers to this question

Recommended Posts

  • 0
Posted

Trebuie sa ai o variabila de a da start ce se verifica la un timer, un exemplu ar fi la un timer de o secunda, ex:

new tut[MAX_PLAYERS];

Onplayerconnect => tut[playerid] = 0;

Ongamemodeinit => SetTimer("TimerOneSecond", 1000, true);

dupa ce se inregistreaza complet => tut[playerid] = 1;



forward TimerOneSecond();

public TimerOneSecond()

{

for(new i = 0; i < MAX_PLAYERS; i++)

{

if(tut[i] > 0 && tut[i] < 10)

{

SendClientMessage(i, -1, "test");

}

else if(tut[i] >= 10 && tut[i] < 20)

{

SendClientMessage(i, -1, "test 2");

}

else if(tut[i] >= 20)

{

tut[i] = 0;

SendClientMessage(i, -1, "End test");

}

}

 return 1;

}

 

  • 0
Posted
Acum 1 oră, iSkull a spus:

Trebuie sa ai o variabila de a da start ce se verifica la un timer, un exemplu ar fi la un timer de o secunda, ex:


new tut[MAX_PLAYERS];

Onplayerconnect => tut[playerid] = 0;

Ongamemodeinit => SetTimer("TimerOneSecond", 1000, true);

dupa ce se inregistreaza complet => tut[playerid] = 1;



forward TimerOneSecond();

public TimerOneSecond()

{

for(new i = 0; i < MAX_PLAYERS; i++)

{

if(tut[i] > 0 && tut[i] < 10)

{

SendClientMessage(i, -1, "test");

}

else if(tut[i] >= 10 && tut[i] < 20)

{

SendClientMessage(i, -1, "test 2");

}

else if(tut[i] >= 20)

{

tut[i] = 0;

SendClientMessage(i, -1, "End test");

}

}

 return 1;

}

 

Am pus și nu-mi apare mesajul de început 

  • 0
Posted
Acum 3 ore, HAndreiH a spus:

Am pus și nu-mi apare mesajul de început 

Tu ai zis ca nu iti apare tutorialul, nu altceva, pentru asta te duci la onplayerconnect si scrii acolo sendclientmessage(playerid, -1, "welcome.");

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.