cLaX Posted March 19, 2018 Share Posted March 19, 2018 Cum se face comanda skip pentru tutorial ? Multumesc anticipat ! Quote Link to comment Share on other sites More sharing options...
xAotw Posted March 19, 2018 Share Posted March 19, 2018 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); SetCameraBehindPlayer(playerid); TogglePlayerSpectating(playerid, 0); SetPlayerSpawn(playerid); PlayerInfo[playerid][pAccount] = 10000; ResetPlayerCash(playerid); GivePlayerCash(playerid,50000); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); TogglePlayerControllable(playerid,true); new str1[256]; mysql_format(SQL,str1,256,"UPDATE users SET `Tutorial`='1',`Bank`='0',`Money`='0' WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str1,"",""); } else return SendClientMessage(playerid, -1, "Nu esti in tutorial."); return 1; } Daca ai nelamuriri ma poti contacta printr-un PM pe forum. Quote Link to comment Share on other sites More sharing options...
REGEE Posted March 20, 2018 Share Posted March 20, 2018 mare lucru ma stii de facut o comanda, ma chiar asa a-ti ajuns :)) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.