10.04.2010, 07:45
Do something like that: (Thats for godfather anyway, you might need to change it a bit)
new weeduse[MAX_PLAYERS];
OnPlayerConnect put weeduse[playerid] = 0;
and on /smokeweed put weeduse[playerid] = 1;
and then, go to OnPlayerDeath, and write
new weeduse[MAX_PLAYERS];
OnPlayerConnect put weeduse[playerid] = 0;
and on /smokeweed put weeduse[playerid] = 1;
and then, go to OnPlayerDeath, and write
Код:
if(weeduse[playerid] == 1) { SetPlayerWeather(playerid, id); }