07.10.2013, 12:22
pawn Код:
CMD:gdisarm(playerid, params[])
{
new PlayerName[24], str_[128];
if(pInfo[playerid][pGuideLevel] < 1) return 0;
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
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: /edisarm <playerid>");
ResetPlayerWeapons(playerid);
format(str_, sizeof(str_), "[ ! ] (EVENT) Your weapon(s) have been disarmed !", PlayerName);
SendClientMessage(playerid, COLOR_LIGHTGREEN, str_);
return 1;
}