27.12.2012, 14:20
The function of this script will be ban players that are using JetPack With the only exception administrators.
PHP код:
stock JetPackHacks(playerid)
{
new str[256];
new str2[256];
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
{
format(str, sizeof(str)),"Player: %s has been banned to Jetpack Hacks",GetPlayerName(playerid);
SendClientMessageToAll(COLOR_RED, str);
Ban(playerid);
}
else if(IsPlayerAdmin(playerid))
{
format(str2, sizeof(str2)),"Administrator: %s is now using a Jetpack", GetPlayerName(playerid};
SendClientMessageToAll(COLOR_NAVY, str2);
return 1;
}