Help please ? -
Blondz - 21.06.2016
Read please
Hello there, I Have an admin system (ready with all commands,) and i have my admin system too but not ready it misses some stuffs i want to move Some commands from the ready and complete admin system to mine
I Dont want to remove mine and put that because i have some problems and i dont want too also have 2 register systems and vip systems and i dont need a register cuz i have mine and i dont need the vip because i dont need the vip system I just want you to tell me please how to add some commands from that system to mine cuz when i copy paste some CMD:... it doesn't work
Some errors like Symbole is never used etc etc.
Hope you help meeh. Thanks
Re: Help please ? -
ATGOggy - 21.06.2016
Copy paste it and post your code and errors.
P.S:- Are you Blondz who play in Lsrcr?
Re: Help please ? -
Blondz - 21.06.2016
Omfg Atgo
i'm Gucci xD Using my friends Account
Re: Help please ? -
CSLangdale - 21.06.2016
Post one of your commands here and then show us the commands that you want from the other admin system so we can help
Re: Help please ? -
Blondz - 22.06.2016
I Want the Jail&Unjail Commands
Here is it on the admin system and i want to add it
Код:
CMD:jail(playerid, params[])
{
if(pInfo[playerid][pLevel] >= 1)
{
new id, time = 0, reason[50];
if(isnull(params)) return SendClientMessage(playerid, yellow, "Usage: /Jail <Player ID> <Minutes> <Reason>");
sscanf(params, "uis[50]", id, time, reason);
if(IsPlayerConnected(id) && id != playerid)
{
if(pInfo[id][Jailed] == 1) return SendClientMessage(playerid,red,"This player is already jailed. see /jailed");
if(pInfo[playerid][pLevel] <= pInfo[id][pLevel]) return ShowMessage(playerid, red, 6);
if(!isnull(reason) && time == 0)
format(Jstring,sizeof(Jstring),"Administrator %s has jailed player '%s' | Reason: %s",GetName(playerid),GetName(id),reason);
else if(!isnull(reason) && time >= 1) format(Jstring,sizeof(Jstring),"Administrator %s has jailed '%s' for %d minutes (reason: %s)",GetName(playerid),GetName(id), time, reason);
else if(isnull(reason) && time >= 1) format(Jstring,sizeof(Jstring),"Administrator %s has jailed '%s' for %d minutes",GetName(playerid),GetName(id), time);
else format(Jstring,sizeof(Jstring),"Administrator %s has jailed '%s'",GetName(playerid),GetName(id));
CommandToAdmins(playerid,"jail");
SendClientMessageToAll(red,Jstring);
pInfo[id][Jailed] = 1;
TogglePlayerControllable(id, false);
new Float:x, Float:y, Float:z;
GetPlayerPos(id,x,y,z);
SetPlayerCameraPos(id,x+7,y,z+5);
SetPlayerCameraLookAt(id,x,y,z);
JPlayer[id] = SetTimerEx("JailPlayer",3000,0,"d",id);
if(GetPlayerState(id) == PLAYER_STATE_ONFOOT) SetPlayerSpecialAction(id,SPECIAL_ACTION_HANDSUP);
if(time >= 1)
{
Jtimer[id] = SetTimerEx("Unjail",time*1000*60,0,"u",id);
}
return 1;
}
else return ShowMessage(playerid, red, 3);
}
else return ShowMessage(playerid, red, 1);
}
CMD:unjail(playerid, params[])
{
if(pInfo[playerid][pLevel] >= 1)
{
new id, reason[50];
if(isnull(params)) return SendClientMessage(playerid, yellow, "Usage: /unjail <Player ID/Part of Name> <Reason>");
sscanf(params, "us[50]", id, reason);
if(IsPlayerConnected(id))
{
if(pInfo[id][Jailed] == 0) return SendClientMessage(playerid,red,"This player is not jailed!");
if(!isnull(reason))
format(Jstring,sizeof(Jstring),"You have been unjailed by admin '%s' | Reason: %s",GetName(playerid),reason);
else format(Jstring,sizeof(Jstring),"You have been unjailed by admin '%s'",GetName(playerid));
SendClientMessage(id,yellow,Jstring);
CommandToAdmins(playerid,"unjail");
format(Jstring,sizeof(Jstring),"You have unjailed '%s'",GetName(id));
SendClientMessage(playerid,yellow,Jstring);
pInfo[id][Jailed] = 0;
TogglePlayerControllable(id, true);
SpawnPlayer(id);
KillTimer(Jtimer[id]);
return 1;
}
else return ShowMessage(playerid, red, 2);
}
else return ShowMessage(playerid, red, 1);
}
CMD:jailed(playerid,params[])
{
if(pInfo[playerid][pLevel] >= 1)
{
new IsFrozen = 0;
strdel(JLstring,0,500);
foreach(Player, i)
{
if (pInfo[i][Jailed] == 1)
{
format(Jstring, 128, "%s(ID: %d)\n",GetName(i),i);
strcat(JLstring, Jstring, sizeof(JLstring));
IsFrozen++;
}
}
if (IsFrozen == 0)
ShowPlayerDialog(playerid,JDIALOGS+165,DIALOG_STYLE_MSGBOX,"{00FFE6}Jailed Players","{FF0000}No one is Jailed!" ,"OK","");
else
{
if(IsFrozen == 1) ShowPlayerDialog(playerid,JDIALOGS+165,DIALOG_STYLE_MSGBOX,"{00FFE6}1 player is Jailed",JLstring ,"OK","");
else format(Jstring, 128, "{00FFE6}%d players are Jailed",IsFrozen), ShowPlayerDialog(playerid,JDIALOGS+165,DIALOG_STYLE_MSGBOX,Jstring,JLstring ,"OK","");
}
strdel(JLstring,0,500);
return 1;
}
else return ShowMessage(playerid, red, 1);
}
Re: Help please ? -
CSLangdale - 22.06.2016
Okay what errors do you have when you add can you copy and paste them as well and show me one of your admin commands
Re: Help please ? -
Blondz - 22.06.2016
Errors:
***.pwn(4780) : error 017: undefined symbol "pLevel"
***.pwn(4783) : error 017: undefined symbol "yellow"
***.pwn(4787) : error 017: undefined symbol "Jailed"
***.pwn(4787) : error 017: undefined symbol "red"
***.pwn(478
: error 017: undefined symbol "pLevel"
***.pwn(478
: error 017: undefined symbol "ShowMessage"
***.pwn(4794) : error 017: undefined symbol "CommandToAdmins"
***.pwn(4795) : error 017: undefined symbol "red"
***.pwn(4796) : error 017: undefined symbol "Jailed"
***.pwn(4802) : error 017: undefined symbol "JPlayer"
***.pwn(4802) : warning 215: expression has no effect
***.pwn(4802) : error 001: expected token: ";", but found "]"
***.pwn(4802) : error 029: invalid expression, assumed zero
***.pwn(4802) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
13 Errors.
[/CODE]
Re: Help please ? -
Blondz - 23.06.2016
///ENUM
enum PlayerInfo
{
Pass[129],
Money,
Scores,
Kills,
Deaths,
Rape,
Rob,
Taze,
Kidnap,
pSwat,
pArmy,
Admin,
Banned,
Breason[300],
Badmin[MAX_PLAYER_NAME],
tag
}
Re: Help please ? -
Blondz - 24.06.2016
///ENUM
enum PlayerInfo
{
Pass[129],
Money,
Scores,
Kills,
Deaths,
Rape,
Rob,
Taze,
Kidnap,
pSwat,
pArmy,
Admin,
Banned,
Breason[300],
Badmin[MAX_PLAYER_NAME],
tag
}
Re: Help please ? -
oktokt1 - 24.06.2016
For Fast help:
If u want i can help u with that problem so if u want PM me and i will help u with Team Viewer.
That if u want.