/setlevel - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /setlevel (
/showthread.php?tid=394661)
/setlevel -
Ryox175 - 23.11.2012
Can someone make tutorial for command /setlevel <playerid> <level>
And sendclientmessage you have been promoted to <adminlevel>
Anyone can to it?
It can be tutorial or what, need help with it.
I need it cause i start a Driftserver
Re: /setlevel -
ashwinsekhari - 23.11.2012
next time use ******
https://sampforum.blast.hk/showthread.php?tid=357538
Re: /setlevel -
Ryox175 - 23.11.2012
thanks, but i tried all the codes and get 1 error:
Код:
C:\Documents and Settings\karu\My Documents\samp03e_svr_R2_win32\filterscripts\setadmin.pwn(26) : warning 203: symbol is never used: "setlevel"
C:\Documents and Settings\karu\My Documents\samp03e_svr_R2_win32\filterscripts\setadmin.pwn(26) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: /setlevel -
ashwinsekhari - 23.11.2012
post your line no.26 from pawno
Re: /setlevel -
Konstantinos - 23.11.2012
It's obvious that he doesn't use ZCMD, but strcmp.
Re: /setlevel -
Faisal_khan - 23.11.2012
Add #include <zcmd> on top of your script (but below #include <a_samp>).
Re: /setlevel -
Ryox175 - 24.11.2012
pawn Код:
//set admin level
CMD:setlevel(playerid, params[])
{
if(PlayerInfo[playerid][Padmin] >5)
{
new id, lvl, string[128], string2[128], string3[128];
new INI:file = INI_Open(Path(playerid));
if(sscanf(params,"ui",id,lvl)) return SendClientMessage(playerid, -1, "USAGE: /setlevel <id> <lvl>");
format(string, sizeof(string), "You have set %s admin level to %d", PlayerName(id), lvl);
format(string2, sizeof(string2), "Your level has been set to %d by %s", lvl, PlayerName(playerid));
format(string3, sizeof(string3), "%s is now admin level %d", PlayerName(id), lvl);
SendClientMessage(playerid, -1, string);
SendClientMessage(id, -1, string2);
SendClientMessageToAll(-1, string3);
INI_WriteInt(file,"Padmin",lvl);
INI_Close(file);
return 1;
}
else if(PlayerInfo[playerid][Padmin] <5)
{
SendClientMessage(playerid, -1, "Your not a admin");
return 1;
}
return 1;
}
This is all the line. And i dont have line 26.
Edit, got fixed