25.02.2010, 16:51
Question 1:
I recommend to you use any software to generate colours code. Type "colour picker" in search.
Question 2:
First you must create a timer to always check if the player has the money:
In Top of your GameMode/Fs:
In OnGameModeInit/OnFilterScriptInit
Second, you must create a function to verify player money:
(Put in any anywhere):
I recommend to you use any software to generate colours code. Type "colour picker" in search.
Question 2:
First you must create a timer to always check if the player has the money:
In Top of your GameMode/Fs:
pawn Код:
CheckMoney();
pawn Код:
SetTimer("CheckMoney",1000,1); //1 second
(Put in any anywhere):
pawn Код:
public CheckMoney()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && GetPlayerMoney(i) == -10000)
{
//JAIL FUNCTION HERE
}
}
return 1;
}