10.08.2011, 17:37
(
Последний раз редактировалось Tanush123; 10.08.2011 в 18:16.
Причина: oops for GetPlayerName i put name and not Name
)
OnPlayerUpdate
pawn Код:
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
new str[128];
new weaponid == GetPlayerWeapon(playerid);
if(weaponid == 38 )
{
format(str,sizeof(str),"BANBOT: %s has been banned from server for hacking a minigun!",Name);
SendClientMessageToAll(red,str);
BanEx(playerid,"BANBOT: Minigun Hack!");
}