All works but I have no idea how to script VIP commands, can enyone help? |
Are you trying to edit LuxAdmin VIP Commands and failing, or you can't find them in the script ?
|
dcmd_heal(playerid,params[]) { #pragma unused params if(IsPlayerVipType(playerid,2)) { SetPlayerHealth(playerid,100); } else SendClientMessage(playerid,red,"ERROR: You need to be vip level (2) to use this command "); return 1; }
dcmd_disarm(playerid,params[])
{
if(AccInfo[playerid][Level] >= 1 || AccInfo[playerid][pVip] >= 1)
{
if(!strlen(params)) return
SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Usage: /disarm [PlayerID]") &&
SendClientMessage(playerid, 0xFFFFFFFF, "{FF9900}Function: Will disarm a specified player");
new player1 = strval(params);
new string[128];
if(AccInfo[player1][Level] == ServerInfo[MaxAdminLevel] && AccInfo[playerid][Level] != ServerInfo[MaxAdminLevel])
return SendClientMessage(playerid,0xFFFFFFFF,"{FF0000}ERROR: You cannot use this command on this admin");
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
{
SendCommandToAdmins(playerid,"Disarm");
PlayerPlaySound(player1,1057,0.0,0.0,0.0);
format(string, sizeof(string), "You have disarmed %s ", pName(player1));
SendClientMessage(playerid,BlueMsg,string);
ResetPlayerWeapons(player1);
return PlayerPlaySound(player1,1057,0.0,0.0,0.0);
}
else return ErrorMessages(playerid, 2);
}
else return ErrorMessages(playerid, 1);
}
dcmd(disarm,6,cmdtext);