09.10.2013, 18:00
(
Последний раз редактировалось MAFIAWARS; 10.10.2013 в 06:20.
)
Hello!
I want that Command from which Admin wear its Admin Color by doing this:
/admincolor <1 or 0>
When Admin do /admincolor 1, Its Admin Color should be ON and When He 'll do /admincolor 0, His Admin Color should get OFF.
I made /wearadmincolor & /unwearadmincolor Command but I want to make On and OFF system in one command.
Any Help?
And Also my Kick Command is making Problem.
It is not Showing the Victim that: "You are kicked by %s for %s" but It is just kicking the Player.
And Also I've the Player with /ekick Command (To kick the Player from Virtual World).
The Problem in this Command is, When I am kicking the Player, It is kicked but the Client Message is not showing Correctly.
Like: I kicked ID 1 and His name is "TesT" so it will show like that to All Players.
MAFIA_WARS has been kicked out from the Event
But I don't get kicked. But the Target has been kicked. So that is the problem.
P.S: I want /me and /shout Command too help!
I want that Command from which Admin wear its Admin Color by doing this:
/admincolor <1 or 0>
When Admin do /admincolor 1, Its Admin Color should be ON and When He 'll do /admincolor 0, His Admin Color should get OFF.
I made /wearadmincolor & /unwearadmincolor Command but I want to make On and OFF system in one command.
Any Help?
And Also my Kick Command is making Problem.
pawn Код:
forward KickPublic(playerid);
public KickPublic(playerid) Kick(playerid);
CMD:kick(playerid,params[])
{
if(pInfo[playerid][pAdminLevel] < 1 ) return 0;
new giveplayerid, Name1[MAX_PLAYER_NAME], Name2[MAX_PLAYER_NAME];
new str_[128];
if( GetPlayerVirtualWorld( playerid ) != 0 ) return SendClientMessage( playerid, COLOR_RED, "[ ! ] You can't use Admin Commands in Virtual World !" );
if(sscanf(params,"us[128]",giveplayerid,params)) return SendClientMessage(playerid, COLOR_RED1,"[ ! ] USAGE: /kick <playerid/partofname> <reason>");
if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COLOR_RED,"[ ! ] Player is not connected !");
GetPlayerName(playerid,Name1,sizeof(Name1));
GetPlayerName(giveplayerid,Name2,sizeof(Name2));
format(params,129, "[ ! ] %s has been kicked by %s for '%s'",Name2,Name1,params);
format(str_,sizeof(str_), "[ ! ] You are kicked by %s for '%s'", Name1, params);
SetTimerEx("KickPublic", 4000, 0, "d", giveplayerid);
SendClientMessage(giveplayerid, COLOR_WS, str_);
SendClientMessageToAll(COLOR_WS,params);
Kick(giveplayerid);
return 1;
}
And Also I've the Player with /ekick Command (To kick the Player from Virtual World).
pawn Код:
CMD:ekick(playerid, params[])
{
if(GetPlayerVirtualWorld(playerid) != 1) return SendClientMessage( playerid, COLOR_RED, "[ ! ] You can't use Event Commands in Real World !");
new giveplayerid, PlayerName[MAX_PLAYER_NAME], str_[100];
if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_LIGHTGREEN, "[ ! ] USAGE: /ekick <playerid>");
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(GetPlayerVirtualWorld(giveplayerid) != 1) return SendClientMessage( playerid, COLOR_RED, "[ ! ] This Player is not in Event !" );
SetPlayerVirtualWorld(giveplayerid, 0);
format(str_, 62, "[ ! ] %s has been kicked out from the event !", PlayerName);
SendClientMessageToAll(COLOR_EVENT, str_);
SendClientMessage(giveplayerid, COLOR_EVENT, "[ ! ] You have been kicked out from the Event !");
return 1;
}
Like: I kicked ID 1 and His name is "TesT" so it will show like that to All Players.
MAFIA_WARS has been kicked out from the Event
But I don't get kicked. But the Target has been kicked. So that is the problem.
P.S: I want /me and /shout Command too help!