Scripting Help
#1

How to make this for my admin system?

Код:
if (skinid == 217 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"This skin is available for staff members only.");
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=507416
Read that for future events.
What are your enums for player data?
Reply
#3

pInfo
Reply
#4

What do you mean here ?
Reply
#5

Okay well I assume it's something along the lines of
pawn Код:
if (skinid == 217 && pInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid, -1,"This skin is available for staff members only.");
Change the 0 to whatever admin level you want
Reply
#6

@Jacksta21 thx it worked
Reply
#7

not working, it workes for all regular players and admins except level 1 because i changed the 0 to 1, so i made the code :
Код:
PlayerInfo[playerid][Admin] != 1)
and not working to regular players and admins it works to admin level 1 only
Reply
#8

Quote:
Originally Posted by kirostar
Посмотреть сообщение
not working, it workes for all regular players and admins except level 1 because i changed the 0 to 1, so i made the code :
Код:
PlayerInfo[playerid][Admin] != 1)
and not working to regular players and admins it works to admin level 1 only
How it only works for admins level 1 while u put unequal ( != 1 ) u must have something wrong in your admin system.
Reply
#9

ok i made it (== 1 ) and works to regular players and all admins except level 1

and no i'm doing this for all commands and it worked except this.
Reply
#10

Quote:
Originally Posted by kirostar
Посмотреть сообщение
ok i made it (== 1 ) and works to regular players and all admins except level 1

and no i'm doing this for all commands and it worked except this.
I really don't get what do you want! do you want this skin be only for admins or for regular player ?
Reply


Forum Jump:


Users browsing this thread: