SA-MP Forums Archive
zombie server- help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: zombie server- help (/showthread.php?tid=617455)



zombie server- help - Johnu - 21.09.2016

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?


Re: zombie server- help - Lynn - 21.09.2016

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;
}



Re: zombie server- help - Johnu - 21.09.2016

Where should I put this?


Re: zombie server- help - Lynn - 21.09.2016

Main post updated.


Re: zombie server- help - Johnu - 21.09.2016

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


Re: zombie server- help - UnGodly - 21.09.2016

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.