06.10.2016, 09:52
Ok i made a happy hour script but i want it to change the server name to the one you see below , each time an admin use the command i want the server name to change to "{HAPPY HOUR} Los Santos Gang Wars" but it wont.
pawn Код:
CMD:happyhr(playerid,params[])
{
if(IsPlayerAdmin(playerid) || pInfo[playerid][aAdmin] >= 6)
{
foreach(Player, i)
{
hrtime[i] = SetTimerEx("HappyHour",10000,1,"d",playerid);
happyhr[i] = 1;
SendClientMessageToAll(0x37EA7EFF,"------------------------------------------");
SendClientMessageToAll(0xD6D6D6FF, "*****LOS SANTOS GANG WARS HAPPYHOUR!*****");
SendClientMessageToAll(0x37EA7EFF,"------------------------------------------");
SendClientMessageToAll(0x37EA7EFF,"Free Weapons, Free Scores, Free Money, Free Ammunition ,Events etc....");
SendRconCommand("{****HAPPY HOUR****}Los Santos Gang Wars");// it should change to this but it wont.
}
return 1;
}
else return ShowMessage(playerid, red, 1);
}