Script Help

Started by =RK=MarineForce, Apr 27, 2018, 10:52 AM

Previous topic - Next topic

Saiyan Attack

you can run this command like this ..
else if ( ( cmd == "acmds" ) || ( cmd == "admincmds" ) )
{
if( stats[ player.ID ].Log == false && pstats[ player.ID ].Reg == false ) MessagePlayer( "You Need Login or Register First.", player );
else if ( stats[ player.ID ].Level == 1 ) MessagePlayer( "You Are Not Authorized To use This Command", player );
else if ( stats[ player.ID ].Level == 2 ) MessagePlayer( " [#0000ff]/ann /drown /kick /warn /unwarn /checkwarn /slap /mute /unmute  ", player );
else if ( stats[ player.ID ].Level == 3 ) {
MessagePlayer( " [#0000ff]/ban /unban  /disarm /eject /setmoney", player );
MessagePlayer( " [#0000ff]/ann /drown /kick /warn /unwarn /checkwarn /slap /mute /unmute  ", player );
MessagePlayer( " [#0000ff]/goto /getcar /killed /freeze /unfreeze /heal /armour /setarmour /setheal /sethp /setarmour", player );
}
else if ( stats[ player.ID ].Level == 4 ) {
MessagePlayer( " [#0000ff]/ann /drown /kick /warn /unwarn /checkwarn /slap /mute /unmute  ", player );
MessagePlayer( " [#0000ff]/goto /getcar /killed /freeze /unfreeze /heal /armour /setarmour /setheal /sethp /setarmour", player );
MessagePlayer( " [#0000ff]  /ban /unban  /disarm /eject /setmoney", player );
MessagePlayer( " [#0000ff] /settime /setweather /healall /armourall /freezeall /unfreezeall /getall /drownall /ejectall /drownall /getall", player );
}
else if ( stats[ player.ID ].Level == 5 ) {
MessagePlayer( " [#0000ff]/ann /drown /kick /warn /unwarn /checkwarn /slap /mute /unmute  ", player );
MessagePlayer( " [#0000ff]/goto /getcar /killed /freeze /unfreeze /heal /armour /setarmour /setheal /sethp /setarmour", player );
MessagePlayer( " [#0000ff]  /ban /unban  /disarm /eject /setmoney", player );
MessagePlayer( " [#0000ff] /settime /setweather /healall /armourall /freezeall /unfreezeall /getall /drownall /ejectall /drownall /getall", player );
MessagePlayer( " [#0000ff] /setlevel /exec /givewep ", player );
}
else if ( stats[ player.ID ].Level == 6 )  {
MessagePlayer( " [#0000ff]/ann /drown /kick /warn /unwarn /checkwarn /slap /mute /unmute  ", player );
MessagePlayer( " [#0000ff]/goto /getcar /killed /freeze /unfreeze /heal /armour /setarmour /setheal /sethp /setarmour", player );
MessagePlayer( " [#0000ff] /ban /unban  /disarm /eject /setmoney", player );
MessagePlayer( " [#0000ff] /settime /setweather /healall /armourall /freezeall /unfreezeall /getall /drownall /ejectall /drownall /getall", player );
MessagePlayer( " [#0000ff] /setlevel /exec /givewep ", player );
MessagePlayer( " [#0000ff] /amme /exec /setlevel", player );
}
}

=RK=MarineForce

function LevelTag( p )
{
local lvl = stats[ p.ID ].Level;
switch (lvl)
{
    case 1 return "Member";
    case 2 return "Moderator";
    case 3 return "Admin";
    case 4 return "Head-Admin";
    case 5 return "Manager";
    case 6 return "Developer";
    default return "Visitor";
}
}

NicusorN5

Quote from: =RK=MarineForce on Apr 29, 2018, 12:20 PMfunction LevelTag( p )
{
local lvl = stats[ p.ID ].Level;
switch (lvl)
{
    case 1 return "Member";
    case 2 return "Moderator";
    case 3 return "Admin";
    case 4 return "Head-Admin";
    case 5 return "Manager";
    case 6 return "Developer";
    default return "Visitor";
}
}
C A N C E R

Here's a fixed version:

function LevelTag( p )
{
local lvl = stats[ p.ID ].Level;
switch (lvl)
{
    case 1: return "Member";
    case 2: return "Moderator";
    case 3: return "Admin";
    case 4: return "Head-Admin";
    case 5: return "Manager";
    case 6: return "Developer";
    default: return "Visitor";
}
}


=RK=MarineForce

Thanks.

Topic should be Lock