I need a /cuff and /uncuff command
#8

pawn Код:
if (strcmp("/cuff", cmdtext, true, 15) == 0)
    {
    new tmp[128];
    new idx;
    new giveplayerid;
    new giveplayer[MAX_PLAYER_NAME];
    new sendername[MAX_PLAYER_NAME];
    tmp = strtok(cmdtext,idx);
    if(!strlen(tmp) return SendClientMessage(playerid,0xAA3333AA,"USAGE: /cuff playerid");
    giveplayerid = strval(tmp);
    if(gTeam[playerid] == TEAM_COP)
    {
    if(gTeam[giveplayerid] == TEAM_COP) return SendClientMessage(playerid,0xAA3333AA,"You cannot cuff cops !");
    TogglePlayerControllable(giveplayerid,0);
    format(tmp,sizeof(tmp),"You have cuffed %s",GetPlayerName(giveplayerid,giveplayer,sizeof(giveplayer));
    SendClientMessage(playerid,0x33AA33AA,tmp);
    format(tmp,sizeof(tmp),"You have been cuffed by %s",GetPlayerName(playerid,sendername,sizeof(sendername));
    return 1;
    }
Reply


Messages In This Thread
I need a /cuff and /uncuff command - by killdahobo99 - 27.07.2009, 23:40
Re: >>>>>>HELP WILLING TO PAY<<<<<<< - by killdahobo99 - 28.07.2009, 00:28
Re: >>>>>>HELP WILLING TO PAY<<<<<<< - by pepper - 28.07.2009, 00:29
Re: >>>>>>HELP WILLING TO PAY<<<<<<< - by killdahobo99 - 28.07.2009, 00:33
Re: >>>>>>HELP WILLING TO PAY<<<<<<< - by coole210 - 28.07.2009, 00:36
Re: >>>>>>HELP WILLING TO PAY<<<<<<< - by Kenny990 - 28.07.2009, 00:37
Re: >>>>>>HELP WILLING TO PAY<<<<<<< - by killdahobo99 - 28.07.2009, 00:38
Re: >>>>>>HELP WILLING TO PAY<<<<<<< - by coole210 - 28.07.2009, 00:40
Re: >>>>>>HELP WILLING TO PAY<<<<<<< - by killdahobo99 - 28.07.2009, 00:43
Re: >>>>>>HELP WILLING TO PAY<<<<<<< - by coole210 - 28.07.2009, 00:44

Forum Jump:


Users browsing this thread: 2 Guest(s)