[HELP]Leveling the Mechanics of Virtual World System.
#4

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;
}
It is the Command to Disarm Players.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)