Closed GoogleCodeExporter closed 9 years ago
void CnRAdminDetect() //For detecting admins
{
char PlayerName[255];
char Format[255];
int iAdminCount = 0;
if(strncmp(g_SAMP->szHostname, "CrazyBob's Cops And Robbers", 27) != 0 || set.cnradmindetectorenable == false)
return;
for (int i = 0; i < SAMP_PLAYER_MAX; i++)
{
if ( g_Players->iIsListed[i] != 1 )
continue;
strncpy(PlayerName, getPlayerName(i), sizeof(PlayerName));
//fix me
if(strcmp(PlayerName, "CrazyBob") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Mr.X") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "vick.") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "4x4Freak(UK)") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Hilary") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Yayoo") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "JRN(DK)") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Maurice(NZ)") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "vv2v") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "ATeddyBear") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Inf") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Fallon") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Psyra") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "dAmAgE") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Holly") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "danielle") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "K4B4L") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Fudgie") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Llama") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Dr.") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Depleted") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "gmb") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "MikaTheAss") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Ninou") == 0) //Might not be an admin anymore
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Chivo") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Cristi") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Juusto") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "hedje") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "shep") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "SheepFucka") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Nigell") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Tomo") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Skeeter") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "xenex") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "John877") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Orca") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Muti") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Ray0") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Blister") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Brodie") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Carl2") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "JFTW") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Juicy09royalty") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Neophyte94") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Typhoid_Mary") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Affe") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "asian_gangsta") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Cis") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "84forlife") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Bryan26") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "euphoria") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Hamchilla") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "l34shed") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Matt888") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "MetalFace") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "money") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "nyislanders") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Propugnator") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Siljiilljimn") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "TheCripple") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "zentar") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Ziebart") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Suzy_Splintercunt") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "BBird") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Samantha") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Acer") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Everything.") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Evil4:20") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Kadsswallop") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "LynxXx") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Myth") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Pacman") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Pineapple420") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "rakart") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Rashon") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "robotmonkey") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Shannon") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Sigma1") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Sznupek") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Thanedar") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Tinus_nl") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "Uche") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "whoo") == 0)
{
iAdminCount++;
}
else if(strcmp(PlayerName, "miss") == 0)
{
iAdminCount++;
}
}
if ( iAdminCount > 0 ) //Fuck Admins
{
snprintf(Format, sizeof(Format), "Admins Online: %i", iAdminCount);
pD3DFont->PrintShadow(set.cnradmindetectorlocationx, set.cnradmindetectorlocationy, D3DCOLOR_ARGB(255, 200, 0, 0), Format);
}
else
{
pD3DFont->PrintShadow(set.cnradmindetectorlocationx, set.cnradmindetectorlocationy, D3DCOLOR_ARGB(255, 0, 200, 0), "Cheat Away!");
}
return;
}
Original comment by millerjo...@hotmail.com
on 10 Mar 2013 at 1:28
Attachments:
[deleted comment]
Original comment by its.fyp
on 24 Apr 2013 at 3:06
Original issue reported on code.google.com by
millerjo...@hotmail.com
on 10 Mar 2013 at 1:21