Stock Function - Simple - Yes Or No Answer
#1

Hey,

I have decided to be slightly lazy in my script and speed up my commands by scripting a stock function and i am just wondering if it would work, basically the gamemode i am currently working on is a Cops And Robbers. And of course i cannot have cops, CIA or medics robbing places.

Here if the function:

pawn Код:
stock IsACop(playerid)
{
    if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_CIA || gTeam[playerid] == TEAM_MEDIC)
    {
        SendClientMessage(playerid,COLOR_RED,"Law Enforcement Officers Cannot Rob Places");
    }
}
As you can see very simple but if someone could confirm it works that would be great thanks.

I only ask this as i am along way off complete and not thinking of adding commands at the moment.
Reply


Messages In This Thread
Stock Function - Simple - Yes Or No Answer - by xMichaelx - 08.12.2011, 02:26
Re: Stock Function - Simple - Yes Or No Answer - by Emmet_ - 08.12.2011, 02:40
Re: Stock Function - Simple - Yes Or No Answer - by xMichaelx - 08.12.2011, 02:49
Re: Stock Function - Simple - Yes Or No Answer - by Emmet_ - 08.12.2011, 03:03
Re: Stock Function - Simple - Yes Or No Answer - by xMichaelx - 08.12.2011, 03:11

Forum Jump:


Users browsing this thread: 1 Guest(s)