public ChecarCheater(playerid)
{
for( new i = 0; i < MAX_PLAYERS; i ++)
{
if(GetPlayerSpecialAction(i) == 2 && !IsPlayerAdmin(i))
{
SendClientMessage(i, Branco, "[Sistema_Linux] Fue kikeado del servidor por utlizar una {9EC0F8}Jet Pack{FFFFFF} de el ******.");
SendClientMessage(i, Branco, "Si eres inocente,contactanos y publica tema des-ban en nuestra web mas info seccion baneados(http://territoryskyline.es.tl).");
SetPVarInt(i, "JetPack", 1);
Kick(i);
return 1;
}
public ChecarCheater(playerid)
{
for( new i = 0; i < MAX_PLAYERS; i ++)
{
if(GetPlayerSpecialAction(i) == 2 && !IsPlayerAdmin(i))
{
SendClientMessage(i, Branco, "[Sistema_Linux] Fue kikeado del servidor por utlizar una {9EC0F8}Jet Pack{FFFFFF} de el ******.");
SendClientMessage(i, Branco, "Si eres inocente,contactanos y publica tema des-ban en nuestra web mas info seccion baneados(http://territoryskyline.es.tl).");
SetPVarInt(i, "JetPack", 1);
SetPlayerHealth(i, 0.0);
return 1;
}
pawn Код:
lo unico que modifique fue que quite Kick(i) y puse SetPlayerHealth... |
for( new playerid = 0; playerid < MAX_PLAYERS; playerid ++)
public OnPlayerUpdate(playerid)
{
if(!IsPlayerConnected(playerid)) return 0;
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
SendClientMessage(playerid, Branco, "[Sistema_Linux] Fue kikeado del servidor por utlizar una {9EC0F8}Jet Pack{FFFFFF} de el ******.");
SendClientMessage(playerid, Branco, "Si eres inocente,contactanos y publica tema des-ban en nuestra web mas info seccion baneados(http://territoryskyline.es.tl).");
SetPlayerHealth(playerid, 0.0);
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(GetPlayerVehicleID(killerid)) == 425 || GetVehicleModel(GetPlayerVehicleID(killerid)) == 432 || GetVehicleModel(GetPlayerVehicleID(killerid)) == 476 || GetVehicleModel(GetPlayerVehicleID(killerid)) == 520 ) return 1;
new nVitima[MAX_PLAYER_NAME];
new nAcusado[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(killerid, nAcusado, sizeof(nAcusado));
GetPlayerName(playerid, nVitima, sizeof(nVitima));
format(string, sizeof(string), "[r %s [ID: %d] Hae-By %s Ls.", nAcusado, killerid, nVitima);
SendClientMessageToAll(VermelhoClaro, string);
format(string, sizeof(string), "y%s.", nVitima);
SendClientMessage(killerid, Branco, string);
SetPlayerHealth(playerid, 0);
SetPlayerArmour(playerid, 0);
return 1;
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(GetPlayerVehicleID(killerid)) == 425 || GetVehicleModel(GetPlayerVehicleID(killerid)) == 432 || GetVehicleModel(GetPlayerVehicleID(killerid)) == 476 || GetVehicleModel(GetPlayerVehicleID(killerid)) == 520 )
{
new nVitima[MAX_PLAYER_NAME];
new nAcusado[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(killerid, nAcusado, sizeof(nAcusado));
GetPlayerName(playerid, nVitima, sizeof(nVitima));
format(string, sizeof(string), "[r %s [ID: %d] Hae-By %s Ls.", nAcusado, killerid, nVitima);
SendClientMessageToAll(VermelhoClaro, string);
format(string, sizeof(string), "y%s.", nVitima);
SendClientMessage(killerid, Branco, string);
SetPlayerHealth(playerid, 0);
SetPlayerArmour(playerid, 0);
}
}
return 1;
}