[help] I HAve An Very Small Issue [not Error] Issue - 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: [help] I HAve An Very Small Issue [not Error] Issue (
/showthread.php?tid=266786)
[help] I HAve An Very Small Issue [not Error] Issue -
HayZatic - 06.07.2011
So this is my script
Code:
COMMAND:fog(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][AdminLevel] >= 4)
{
SetPlayerWeather ( playerid , 9 );
SendClientMessageToAll(0x33FF33AA,"Weather Changed To Fog");
new Float:pX, Float:pY, Float:pZ;
PlayerPlaySound(playerid,1057,pX,pY,pZ);
return 1;
}
else return SendClientMessage(playerid, 0xD8D8D8FF, "You are not allowed to use this command.");
}
else return SendClientMessage(playerid, 0xD8D8D8FF, "Player is not connected.");
}
When I use it, it only change the weather for me. This is probally because of
Code:
SetPlayerWeather ( playerid , 9 );
Playerid.
Is there something i can replace playerid with or something? please help
Re: [help] I HAve An Very Small Issue [not Error] Issue -
HayZatic - 06.07.2011
Fixed i used instead , SetWeather(20);