I have a problem with my skins please help !
#1

closed!
Reply
#2

please guys this bug is scrawling ma server ...
Reply
#3

Quote:

here is my code and when player try to spawn he can use any skin if he weren't an admin or bla bla.... then when he use /class and get back to class selection those codes are being on all skin that player can't use any of them if he was an admin too :/

What you said was really confusing, can you clarify please? Also, bumping is only allowed after 24-hours of no response
Reply
#4

kk sorry when player is choosing on of these private skins example if he weren't an admin he can use these skins and he must not and then when he use the cmd classselection he can't use any skin it means he don't spawn
Reply
#5

bump!
Reply
#6

use this:
pawn Код:
if(classid == 0 && !IsPlayerAdmin(playerid)) //0 means the first AddPlayerClass under ongamemodeinit,not the skin id.
    {
        SendClientMessage(playerid, COLOR_RED, "This skin is only for admins!");
        return 0;
    }
and same for other skins you want
Reply
#7

I didn't understand what is 0 ? can't you explain ? xD
Reply
#8

ah I got it you main the case number at onplayerrequestclass
Reply
#9

And the bold text in if(classid == 0 && !IsPlayerAdmin(playerid)) means, if you are not an admin then you are not allowed to use the skin 0.
Reply
#10

why I get undefined symbol classid ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)