I have a problem with my skins please 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: I have a problem with my skins please help ! (
/showthread.php?tid=511467)
I have a problem with my skins please help ! -
KillerStrike23 - 05.05.2014
closed!
Re: I have a problem with my skins please help ! -
KillerStrike23 - 05.05.2014
please guys this bug is scrawling ma server ...
Re: I have a problem with my skins please help ! -
Nathan_Taylor - 05.05.2014
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
Re: I have a problem with my skins please help ! -
KillerStrike23 - 05.05.2014
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
Re: I have a problem with my skins please help ! -
KillerStrike23 - 06.05.2014
bump!
Re: I have a problem with my skins please help ! -
XK - 06.05.2014
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
Re: I have a problem with my skins please help ! -
KillerStrike23 - 06.05.2014
I didn't understand what is 0 ? can't you explain ? xD
Re: I have a problem with my skins please help ! -
KillerStrike23 - 06.05.2014
ah I got it you main the case number at onplayerrequestclass
Re: I have a problem with my skins please help ! -
iBanner - 06.05.2014
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.
Re: I have a problem with my skins please help ! -
KillerStrike23 - 06.05.2014
why I get undefined symbol classid ?