HELP /EQUIP INSIDE DESIGNED CARS
#4

pawn Код:
if(strcmp(cmd, "/equipcop", true) == 0)
{
    if(PlayerToPoint(3, playerid,2300.1250,-1629.1116,14.653 || IsPlayerInAnyVehicle(playerid))
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21)//Cobras
        {
            format(string, sizeof(string), "* the cop %s is armed", sendername);
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
            SetPlayerHealth(playerid, 100);
            GivePlayerWeapon(playerid,24,200);
            GivePlayerWeapon(playerid,25,200);
            GivePlayerWeapon(playerid,5,1);
            SendClientMessage(playerid,COLOR_GREEN,"You are ready to shoot some eggs");
            return 1;
        }
        else
        {
            SendClientMessage(playerid, VERMELHO, "You are not a cop");
        }
    }
}
Then you can add a check underneath that. To check if the player is in a cop vehicle.
Reply


Messages In This Thread
HELP /EQUIP INSIDE DESIGNED CARS - by cacauagiar - 28.12.2010, 15:43
Re: HELP /EQUIP INSIDE DESIGNED CARS - by _rAped - 28.12.2010, 15:52
Re: HELP /EQUIP INSIDE DESIGNED CARS - by cacauagiar - 28.12.2010, 16:12
Re: HELP /EQUIP INSIDE DESIGNED CARS - by _rAped - 28.12.2010, 16:14
Re: HELP /EQUIP INSIDE DESIGNED CARS - by Tessar - 28.12.2010, 16:16
Re: HELP /EQUIP INSIDE DESIGNED CARS - by cacauagiar - 28.12.2010, 16:22
Re: HELP /EQUIP INSIDE DESIGNED CARS - by _rAped - 28.12.2010, 16:25
Re: HELP /EQUIP INSIDE DESIGNED CARS - by cacauagiar - 28.12.2010, 16:57
Re: HELP /EQUIP INSIDE DESIGNED CARS - by _rAped - 28.12.2010, 17:12

Forum Jump:


Users browsing this thread: 1 Guest(s)