15.02.2012, 03:05
i tired too many i do some more update. now own server got banned
.. not yet as rcon login..
when coonect nothing happen.. when spawn got happen banned.
sorry my bad english..
can some one help me out?
![Sad](images/smilies/sad.gif)
when coonect nothing happen.. when spawn got happen banned.
sorry my bad english..
can some one help me out?
pawn Код:
public OnPlayerUpdate(playerid)
{
//
//if(IsPlayerConnected(playerid))
//{
if(IsPlayerAdmin(playerid)) // admin only have weapons minigun
{
GivePlayerWeapon(playerid,38,99999);
GameTextForPlayer(playerid,"Welcome Admin",5000,5);
return 0;
}
else
{
if(!IsPlayerAdmin(playerid)) // not admin
{
GameTextForPlayer(playerid,"~r~SERVER BAN: ~p~for cheater weapons",5000,5);
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "*** %s (ID: %d) (CHEATs DETECTED) Cheats Detected For [MINIGUN].", playername,playerid);
SendClientMessageToAll(COLOR_PINK, string);
Ban(playerid);
print("string");
return 1;
}
}
return 1;
}