Skin Commands - 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: Skin Commands (
/showthread.php?tid=154078)
Skin Commands -
Drowzz - 12.06.2010
Hey,
I want a command for skins.
So if you are a cop.... Than you only can open the gate at Police department.
So a normal user cant open /pd
and if u have a cop skin and u typ /pd than the gates open..
How to fix that?
Greeeeetzzzz
Re: Skin Commands -
ColdXX - 12.06.2010
pawn Код:
if(strcmp(cmd, "/changeskin", true) == 0)
{
new Skin;
tmp = strtok(cmdtext, idx);
Skin = strval(tmp);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GREY, "Usage: /changeskin [0 - 299]");
if(Skin >= 300) return SendClientMessage(playerid, COLOR_GREY, "Skins: 0 - 299");
SetPlayerSkin(playerid, Skin);
return 1;
}
Re: Skin Commands -
[XST]O_x - 12.06.2010
pawn Код:
if(strcmp(cmdtext, "/pd",true)==0)
{
new skin;
skin = GetPlayerSkin(playerid);
if(skin = COPSKINID || skin = ANOTHERCOPSKINID || skin == /*etc*/){
MoveObject(/* */);}
else {return SendClientMessage(playerid,COLOR,"You are not a cop!");}
return 1;
}
Re: Skin Commands -
ColdXX - 12.06.2010
Quote:
Originally Posted by O_x
pawn Код:
if(strcmp(cmdtext, "/pd",true)==0) { new skin; skin = GetPlayerSkin(playerid); if(skin = COPSKINID || skin = ANOTHERCOPSKINID || skin == /*etc*/){ MoveObject(/* */);} else {return SendClientMessage(playerid,COLOR,"You are not a cop!");} return 1; }
Ow didnt read the request carefully :P
|
Re: Skin Commands -
Drowzz - 12.06.2010
Thank You People......