Jump to content

Cum se face comanda skip pentru tutorial ?


Recommended Posts

Bun, pentru inceput cauta in gamemode .

public OnplayerCommandreceived

Pe acolo o sa gasesti ceva de genu .

if(TutTime[playerid] >= 1 || RegistrationStep[playerid] >= 1) return 0;

Selectezi tot textul ala si il pui pe asta peste.

if(TutTime[playerid] >= 1 || RegistrationStep[playerid] >= 1){
    	if(strcmp(cmdtext, "/skip", true) == 0){}
		else return 0;

Aceasta comanda o pui deoarece in tutorial nu pot fi folosite comenzi insa daca pui asta vei putea folosi comanda /skip in tutorial.


In final scrii CMD: pentru a ajunge la comenzile serverului si pui aceasta comanda.

CMD:skip(playerid, params[])
	PlayerTextDrawHide(playerid, Step[playerid]);
	PlayerTextDrawHide(playerid, Tutorial[playerid]);
    if(TutTime[playerid] >= 1)
    TutTime[playerid] = 0; PlayerInfo[playerid][pTut] = 1;
	gNews[playerid] = 0;
	TogglePlayerControllable(playerid, 1);
	TogglePlayerSpectating(playerid, 0);
	PlayerInfo[playerid][pAccount] = 10000;
	new str1[256];
	mysql_format(SQL,str1,256,"UPDATE users SET `Tutorial`='1',`Bank`='0',`Money`='0' WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]);
    else return SendClientMessage(playerid, -1, "Nu esti in tutorial.");
    return 1;

Daca ai nelamuriri ma poti contacta printr-un PM pe forum.

Link to comment
Share on other sites

Join the conversation

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

Reply to this topic...

×   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

By using this site, you agree to our Terms of Use. 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.