Need help with a easy command. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help with a easy command. (
/showthread.php?tid=122932)
Need help with a easy command. -
Sal_Kings - 23.01.2010
Код:
if (strcmp("/test", cmdtext, true, 10) == 0)
{
// How do you change it, so that only if a player has a certain skin ID then this command will work?
return 1;
}
Re: Need help with a easy command. -
Backwardsman97 - 23.01.2010
pawn Код:
if(!strcmp("/test", cmdtext, true))
{
if(GetPlayerSkin(playerid) == /*Whatever skin id*/)
{
//This code will only be called if the player has desired skin
}
return 1;
}