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.");

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.