Salut, dute la: public OnPlayerCommandReceived(playerid, cmdtext[])
Si adauga asta:
if(TutTime[playerid] >= 1 || RegistrationStep[playerid] >= 1){
if(strcmp(cmdtext, "/skip", true) == 0){}
else return 0;
}
Dupa oriunde in gamemode bagi asta:
CMD:skip(playerid, params[]) {
if(TutTime[playerid] >= 1) {
TutTime[playerid] = 0; PlayerInfo[playerid][pTut] = 1;
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
TogglePlayerSpectating(playerid, 0);
SetPlayerSpawn(playerid);
SetPlayerInterior(playerid,0);
ResetPlayerCash(playerid);
GivePlayerCash(playerid,50000);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
TogglePlayerControllable(playerid,true);
PlayerTextDrawHide(playerid, Tutorial[playerid]);
PlayerTextDrawHide(playerid, Step[playerid]);
new str1[256];
mysql_format(SQL,str1,256,"UPDATE users SET Tutorial`='1',Bank`='50000',`Money`='0' WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]);
mysql_tquery(SQL,str1,"","");
}
else return SendClientMessage(playerid, -1, "Aceasta comanda o poti folosi cand esti in tutorial.");
return 1;
}
Sper ca ti-am fost de ajutor, Bafta.
============================================================================================================
Adel2 Scripter Hard-Play
RESPECTA SI VEI FI RESPECTAT!
Discord: Adel2#2586