Skin Commands
#1

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
Reply
#2

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;
    }
Reply
#3

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;
}

Reply
#4

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


Reply
#5

Thank You People......
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)