06.07.2011, 04:30
So this is my script
When I use it, it only change the weather for me. This is probally because of
Playerid.
Is there something i can replace playerid with or something? please help
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.");
}
Code:
SetPlayerWeather ( playerid , 9 );
Is there something i can replace playerid with or something? please help
