Scripting Help
#1

I want /skin to choose from 1 to 299 normally

but i don't wand players to use the skin id 217 because it's for the staff

Код:
if (skinid < 0 || skinid > 299) return SendClientMessage(playerid, -1,"{FA002E}ERROR: {C7BDBF}Your skin ID parameter should be between 0 - 299!");
Reply
#2

pawn Код:
if(!(0 < skinid < 300) || (skinid == 217 && !IsPlayerAdmin(playerid))) return SendClientMessage(playerid, -1, "{FA002E}ERROR: {C7BDBF}Your skin ID parameter should be between 0 - 299 and not 217!");
:l
Reply
#3

pawn Код:
if (skinid < 0 || skinid > 299) return SendClientMessage(playerid, -1,"{FA002E}ERROR: {C7BDBF}Your skin ID parameter should be between 0 - 299!");
if (skinid == 217 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"This skin is available for staff members only.");
Hope this is what you want.
Reply
#4

yes champ but i want it for my admin system, will i change :

Код:
!IsPlayerAdmin(playerid))
with :

Код:
if (PlayerInfo[playerid][Admin] == 2)
?
Reply
#5

Quote:
Originally Posted by kirostar
Посмотреть сообщение
yes champ but i want it for my admin system, will i change :

Код:
!IsPlayerAdmin(playerid))
with :

Код:
if (PlayerInfo[playerid][Admin] == 2)
?
Edit :
pawn Код:
if (PlayerInfo[playerid][Admin] != 2)
Reply
#6

it gives me error, please write the whole line
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)