03.10.2010, 21:18
How can I make skins invite only like this;
Thank you..
pawn Код:
dcmd_sinvite(playerid, params[])
{
// Stuff Here
return 1;
}
dcmd_sinvite(playerid, params[])
{
// Stuff Here
return 1;
}
https://sampwiki.blast.hk/wiki/OnPlayerRequestClass
Theres kinda a template on the wiki for you so I think it would be good for you as what your signature tells me. |
That functions doesn't have classid you smart ass.
You return 0 in OPRC to disallow them to spawn. |
//Global var.
new SkinPass[MAX_PLAYERS] = 0;
new SkinProtected = {
{skin ids}
};
public OPRC(playerid, classid)
{
if(SkinPass[playerid] == 0 && classid == SkinProtected)
{
return 0;
}
else
{
return 1;
}
return 0;
}