Help - 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: Help (
/showthread.php?tid=540504)
Help -
xStunt - 05.10.2014
hi guys! I need your help! I need a command /setlevel [account id] [level]... please
rep++
Re: Help -
DiGiTaL_AnGeL - 05.10.2014
How could we know your variables? Here you request help, not scripts.
Re: Help -
TFreemen - 05.10.2014
As I don`t have your variables you`ll have to change the script but here`s the idea:
Код:
CMD:setlevel(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 10)
{
if(sscanf(params, "ud", giveplayerid, amount)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setlevel [playerid] [level]");
PlayerInfo[giveplayerid][pLevel] = amount;
SendClientMessage(playerid, COLOR_GRAY, "You are not authorized to use that command!");
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
}
return 1;
}