-
Posts
1 -
Joined
-
Last visited
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.
Niste probleme
in Ajutor Scripting
Posted
CMD:setorder(playerid, params[]) {
if(IsPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai.");
if(!IsAMember(playerid)) return SCM(playerid, COLOR_LIGHTRED, "Nu esti un mafiot!");
if(GetPlayerInterior(playerid) == 0) return SendClientMessage(playerid, COLOR_WHITE,"Nu esti in HQ.");
new gunname[128];
if(sscanf(params, "i[10]", gunname)) {
SendClientMessage(playerid, COLOR_GREY, "Syntax:{FFFFFF} /setorder Arma");
SendClientMessage(playerid, COLOR_WHITE, "Available names: Deagle(1), M4(2).");
return 1;
}
if(strcmp(gunname,"1",true) == 0) {
ShowPlayerDialog(playerid, DIALOG_DEAGLE,DIALOG_STYLE_INPUT, "Arma deagle","Scrie numarul de glooante(Nrx40gloante)","Ok","Close");
}
else if(strcmp(gunname,"2",true) == 0) {
SCM(playerid, -1, "Nush de ce am pus asta >)");
}
return 1;
}
Cand scriu comanda si un nr nu face nimic, am gresit ceva cred.