07.05.2007, 10:37
1337 Money Grabber.
Description:
This snippet will get a player's money, and if it equals 1337, it will kill the player and decrease their confidence.
Place this under your OnGameModeInit() Callback.
Now for the Timer
:
This script will diminish the quality of your server. I only made it because I was bored and had nothing better to do.
Cheers,
Ramjet.
Description:
This snippet will get a player's money, and if it equals 1337, it will kill the player and decrease their confidence.
Place this under your OnGameModeInit() Callback.
pawn Код:
SetTimer("1337_MoneyCheck", 1000, true);

pawn Код:
public 1337_MoneyCheck()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new cash = GetPlayerMoney(i);
if(cash == 1337)
{
SetPlayerHealth(i, 0.0); // Kills the player.
SendClientMessage(i, 0x10F441AA, "Not so elite now! xD.");
ResetPlayerMoney(i); // Sets the player's money back to 0.
}
}
}
}
Cheers,
Ramjet.