22.05.2015, 19:54
Eu tenho esse aqui, mas nem adiantou
O seu ai ta dando erro ao compilar, pode me aprimorar isso ?
PHP код:
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
{
if( hittype != BULLET_HIT_TYPE_NONE )
{
if( !( -1000.0 <= fX <= 1000.0 ) || !( -1000.0 <= fY <= 1000.0 ) || !( -1000.0 <= fZ <= 1000.0 ) )
{
new fdpcrasher[MAX_PLAYER_NAME];GetPlayerName(playerid, fdpcrasher, MAX_PLAYER_NAME);
new crasher[300];
format(crasher, sizeof(crasher), "{00FF00}%s {EE0000}foi kikado automaticamente. {00FF00}Motivo: {EE0000}Tentou crashar Players.", fdpcrasher);
printf("[ LVG ]: Crasher de Players detectado: %d [ID:%s]",fdpcrasher,playerid);
SendClientMessageToAll(0xC1C1C1FF, crasher);
Kick(playerid, "Tentou crashar os players");
return 0;
}
}
return 1;
}
Quote:
pawn Код:
Use de base isso dentro da public OnPlayerWeaponShot Atenciosamente, |