28.09.2013, 11:58
Your *client message* code was totally wrong
PHP код:
CMD:ekick(playerid, params[]) {
if (pInfo[playerid][pWSELevel]> 1 ) return 0;
if ( GetPlayerVirtualWorld( playerid ) != 1 ) return SendClientMessage( playerid, COLOR_RED, "[ ! ] You can't use Event Commands in Real World !" );
if (sscanf(params, "u", playerid)) return SendClientMessage(playerid, COLOR_LIGHTGREEN, "[ ! ] USAGE: /ekick <playerid>");
new id, giveplayerid,
PlayerName[ MAX_PLAYER_NAME ], str_[100];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if( GetPlayerVirtualWorld( playerid ) != 1 ) return SendClientMessage( playerid, COLOR_RED, "[ ! ] This Player is not in Event !" );
SetPlayerVirtualWorld(id, 0);
format(str_, 62, "[ ! ] %s has been kicked out from the event !", PlayerName);
SendClientMessageToAll(COLOR_PURPLE, str_);
format(str_, sizeof str_, "[ ! ] You have kicked %s from Event !", PlayerName);
SendClientMessage(playerid, COLOR_PURPLE, str_);
SendClientMessage(giveplayerid, COLOR_PURPLE, "[ ! ] You have been kicked out from the Event !");
return 1;
}