07.12.2012, 04:42
pawn Код:
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys)
{
if( newkeys & KEY_LOOK_BEHIND ){
if(IsPlayerInAnyVehicle(playerid) && !IsPlayerAdmin(playerid)){
static
strxa[ 128 ],
pName[24],
MaxP,
i
;
for( i = 0, MaxP = GetMaxPlayers(); i != MaxP; ++i){
format(strxa, 128, "ATENЗГO ADMINS! NOOB: %s TENTANDO APERTAR 1", (GetPlayerName(playerid, pName, 24), pName));
SendClientMessage( i, -1, strxa );
}
SetVehicleHealth( GetPlayerVehicleID( playerid ), 300 );
}
}
return true;
}
&& Comparador "E"
& Comparador XOR.
Hб uma grande diferenзa.