Posts: 96
Threads: 23
Joined: Apr 2010
Reputation:
0
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
Posts: 672
Threads: 89
Joined: Jan 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;
}
Posts: 672
Threads: 89
Joined: Jan 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
|