[HELP]
#1

I tried adding /skick2 command to be used by helpers level 1336+ to kick hackes when admins are offline etc...
Here's the command

Quote:
Originally Posted by Mr Rash
Посмотреть сообщение
I tried adding /skick2 command to be used by helpers level 1336+ to kick hackes when admins are offline etc...
Here's the command

if(strcmp(cmd, "/skick2", true) ==0)
{
if(IsPlayerConnected(giveplayerid) )
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /skick2 [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerNPC(giveplayerid)) return 1;
if(PlayerInfo[playerid][pHelper] >= 1336)
{
if(IsPlayerConntected(giveplayerid))
{
if(giveplayerid != INVAILD_PLAYER_ID)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
if(PlayerInfo[giveplayerid][pHelper] > PlayerInfo[playerid][pHelper])
{
format(string, sizeof(string), "HelpCmd: %s was Hskicked, reason: Attempting to silent kick a higher level Helper/Admin.", Sendername);
ABroadCast(COLOR_LIGHTGREEN, string, 1);
Kick(playerid);
return 1;
}
format(string, sizeof(string),"HelpCmd: %s was Hskicked by %s", giveplayer,sendername);
ABroadCast(COLOR_LIGHTGREEN, string, 1);
Kick(giveplayerid);
}
}
else
{
format(string, sizeof(string), " That player is offline or you mistyped its name!", giveplayerid);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
}
}
else
{

SendClientMessage(playerid, COLOR_LIGHTGREEN, " You are not authorized to use that command !");
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTGREEN, " You are not authorized to use that command !");
}
}
return 1;
}

ERRORS:
C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31745) : error 017: undefined symbol "IsPlayerConntected"
C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31747) : error 017: undefined symbol "INVAILD_PLAYER_ID"
C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31753) : error 017: undefined symbol "Sendername"
C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31774) : error 029: invalid expression, assumed zero
ERRORS:
C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31745) : error 017: undefined symbol "IsPlayerConntected"
C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31747) : error 017: undefined symbol "INVAILD_PLAYER_ID"
C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31753) : error 017: undefined symbol "Sendername"
C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31774) : error 029: invalid expression, assumed zero
Reply


Messages In This Thread
[HELP] - by Mr Rash - 15.12.2010, 15:07
Re: [HELP] - by Mr Rash - 15.12.2010, 15:08
Re: [HELP] - by XePloiT - 15.12.2010, 15:38
Re: [HELP] - by Mr Rash - 16.12.2010, 13:37
Re: [HELP] - by Benjo - 16.12.2010, 13:57
Re: [HELP] - by alpha500delta - 16.12.2010, 14:39
Re: [HELP] - by Mr Rash - 16.12.2010, 15:05

Forum Jump:


Users browsing this thread: 1 Guest(s)