SA-MP Forums Archive
something easy - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: something easy (/showthread.php?tid=140697)



something easy - MEXICAN_NORTE - 10.04.2010

can somene help me to stop a command like if i do /smokeweed it set the playerweather to 22 rithwe is there any call back to like stop the effect once the player dies


pawn Код:
SetPlayerWeather(playerid,22);
is therer any callabck to stop it so i can add it to the onplayer death


Re: something easy - DjSterios - 10.04.2010

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
Код:
if(weeduse[playerid] == 1)
{
SetPlayerWeather(playerid, id);
}



Re: something easy - MEXICAN_NORTE - 10.04.2010

i did it already but i dinnt work man what about if ill just pust like this on ma gamemode


pawn Код:
SetPlayerWeather(playerid, id);
i just get an error thats says undefined simbol id how can i define it??


Re: something easy - Micko9 - 10.04.2010

Quote:
Originally Posted by MEXICAN_NORTE
i did it already but i dinnt work man what about if ill just pust like this on ma gamemode


pawn Код:
SetPlayerWeather(playerid, id);
i just get an error thats says undefined simbol id how can i define it??
well find the id of the weather you want and replace it .