[help] I HAve An Very Small Issue [not Error] Issue
#1

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
Reply
#2

Fixed i used instead , SetWeather(20);
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)