zombie server- help
#1

hello guys,
I need to create a command /vskin. Which is only for vips, I have 4 vips level. Can any one make it for me?
Reply
#2

Sure, we can make the command.
But you never said what it'll do...

pawn Код:
#include <zcmd>// Top of script, ZCMD needed if you don't already have it.

static VIPLevel[MAX_PLAYERS]; // Global variable.

// Anywhere.
CMD:vskin(playerid, params[])
{
    if(VIPLevel[playerid] >= 1)
    {
        SetPlayerSkin(playerid, 0);
    }
    return 1;
}
Reply
#3

Where should I put this?
Reply
#4

Main post updated.
Reply
#5

its showing an error

C:\Users\Vijay\Desktop\Scriptico\zma4 zom\gamemodes\zma4.pwn(5489) : error 017: undefined symbol "VIPlevel"
C:\Users\Vijay\Desktop\Scriptico\zma4 zom\gamemodes\zma4.pwn(5489) : warning 215: expression has no effect
C:\Users\Vijay\Desktop\Scriptico\zma4 zom\gamemodes\zma4.pwn(5489) : error 001: expected token: ";", but found "]"
C:\Users\Vijay\Desktop\Scriptico\zma4 zom\gamemodes\zma4.pwn(5489) : error 029: invalid expression, assumed zero
C:\Users\Vijay\Desktop\Scriptico\zma4 zom\gamemodes\zma4.pwn(5489) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

When I placed these commands in my gamemode
Reply
#6

The variable is defined as VIPLevel and you wrote VIPlevel.And try to not copy and paste because you won't learn anything doing that.See and think about the code ,now you got the structure and you have to do the rest.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)