Rcon Admin System v1 (ZCMD + SSCANF2) -
Devilxz97 - 29.07.2012
Re: Rcon Admin System v1 (ZCMD + SSCANF2) -
[MK]Man_Deep - 29.07.2012
Nice 8/10 Rep+
Re: Rcon Admin System v1 (ZCMD + SSCANF2) -
Devilxz97 - 29.07.2012
Quote:
Originally Posted by [MK]Man_Deep
Nice 8/10 Rep+
|
thanks Man_Deep, i will work hard on the next version
adding more feuture's
Re: Rcon Admin System v1 (ZCMD + SSCANF2) -
XStormiest - 29.07.2012
wrong
pawn Код:
CMD:rkick(playerid, params[])
{
new pID, reason[128], string[256], pName1[MAX_PLAYER_NAME], pName2[MAX_PLAYER_NAME];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"You are not Rcon Admin!");
if(sscanf(params,"us[128]",pID,reason)) return SendClientMessage(playerid,-1, "[USAGE]:/rkick [Playerid/PartOfName] [Reason]");
if (pID==INVALID_PLAYER_ID)SendClientMessage(playerid,-1,"[ERROR]:Player not found!");
else if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,-1,"[ERROR]:Player is not Connected!");
else
{
GetPlayerName(playerid, pName1, sizeof(pName1));
GetPlayerName(pID, pName2, sizeof(pName2));
format(string, sizeof(string),"Rcon Admin %s has RKICK %s from this server ( Reason: %s )", pName1, pName2, reason);
SendClientMessageToAll(-1, string);
}
return 1;
}
where is Kick(pID); ??.....
+ recomand you using foreach in next version gg nice for a begginer..
pawn Код:
CMD:rkick(playerid, params[])
{
new pID, reason[128], string[256], pName1[MAX_PLAYER_NAME], pName2[MAX_PLAYER_NAME];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"You are not Rcon Admin!");
if(sscanf(params,"us[128]",pID,reason)) return SendClientMessage(playerid,-1, "[USAGE]:/rkick [Playerid/PartOfName] [Reason]");
if (pID==INVALID_PLAYER_ID)SendClientMessage(playerid,-1,"[ERROR]:Player not found!");
else if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,-1,"[ERROR]:Player is not Connected!");
else
{
GetPlayerName(playerid, pName1, sizeof(pName1));
GetPlayerName(pID, pName2, sizeof(pName2));
format(string, sizeof(string),"Rcon Admin %s has RKICK %s from this server ( Reason: %s )", pName1, pName2, reason);
SendClientMessageToAll(-1, string);
Kick(pID);
}
return 1;
}
Re: Rcon Admin System v1 (ZCMD + SSCANF2) -
P<3TS - 29.07.2012
Nice work +rep
Re: Rcon Admin System v1 (ZCMD + SSCANF2) -
Majed - 29.07.2012
Great work, But one thing,
It's same like Admin system but instead it became RCON lol.
Anw good. 8/10 with the error 7/10.
Re: Rcon Admin System v1 (ZCMD + SSCANF2) -
Devilxz97 - 30.07.2012
Quote:
Originally Posted by XStormiest
wrong
pawn Код:
CMD:rkick(playerid, params[])
{
new pID, reason[128], string[256], pName1[MAX_PLAYER_NAME], pName2[MAX_PLAYER_NAME];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"You are not Rcon Admin!");
if(sscanf(params,"us[128]",pID,reason)) return SendClientMessage(playerid,-1, "[USAGE]:/rkick [Playerid/PartOfName] [Reason]");
if (pID==INVALID_PLAYER_ID)SendClientMessage(playerid,-1,"[ERROR]:Player not found!");
else if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,-1,"[ERROR]:Player is not Connected!");
else
{
GetPlayerName(playerid, pName1, sizeof(pName1));
GetPlayerName(pID, pName2, sizeof(pName2));
format(string, sizeof(string),"Rcon Admin %s has RKICK %s from this server ( Reason: %s )", pName1, pName2, reason);
SendClientMessageToAll(-1, string);
}
return 1;
}
where is Kick(pID); ??.....
+ recomand you using foreach in next version gg nice for a begginer..
pawn Код:
CMD:rkick(playerid, params[])
{
new pID, reason[128], string[256], pName1[MAX_PLAYER_NAME], pName2[MAX_PLAYER_NAME];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"You are not Rcon Admin!");
if(sscanf(params,"us[128]",pID,reason)) return SendClientMessage(playerid,-1, "[USAGE]:/rkick [Playerid/PartOfName] [Reason]");
if (pID==INVALID_PLAYER_ID)SendClientMessage(playerid,-1,"[ERROR]:Player not found!");
else if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,-1,"[ERROR]:Player is not Connected!");
else
{
GetPlayerName(playerid, pName1, sizeof(pName1));
GetPlayerName(pID, pName2, sizeof(pName2));
format(string, sizeof(string),"Rcon Admin %s has RKICK %s from this server ( Reason: %s )", pName1, pName2, reason);
SendClientMessageToAll(-1, string); Kick(pID); }
return 1;
}
|
thanks for the info;
miss scripts xD
add Kick(pID);
anyway thanks all for the comment .
Re: Rcon Admin System v1 (ZCMD + SSCANF2) -
Shane_Kingston - 05.10.2012
bug...
Re: Rcon Admin System v1 (ZCMD + SSCANF2) -
Lordzy - 05.10.2012
I suggest you to make a non-RCON admin system with a INI system.
About Work: Good.
Re: Rcon Admin System v1 (ZCMD + SSCANF2) -
DeadLy™ - 05.10.2012
Nice Admin System.
+Rep
8/10 for this cool FS.