Anti-Cbug system slaps player ID 0
#2

Here you have:
pawn Код:
forward OnPlayerCBug(playerid);
public OnPlayerCBug(playerid) {
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    new str2[128];
    format(str2, sizeof(str2), "Automatic system has slapped %s for Crouch bugging with weapon (%s!)", playername, aWeaponNames[WeaponID[playerid]]);
    new Float:Health; GetPlayerHealth(playerid,Health); SetPlayerHealth(playerid,Health-10);
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    SetPlayerPos(playerid, x, y, z+5);
    PlayerPlaySound(playerid,1190,0.0,0.0,0.0); PlayerPlaySound(playerid,1190,0.0,0.0,0.0);
    SendClientMessageToAll(COLOR_RED, str2);
    CheckCrouch[playerid] = 0;
    return 1;
}
Best regards!
Reply


Messages In This Thread
slaps player ID 0 - by captainjohn - 14.04.2012, 19:16
Respuesta: slaps player ID 0 - by [DOG]irinel1996 - 14.04.2012, 19:43
Re: Anti-Cbug system slaps player ID 0 - by captainjohn - 14.04.2012, 21:06

Forum Jump:


Users browsing this thread: 1 Guest(s)