Help in OnPlayerPickUpPickup(playerid,pickupid)
#3

Quote:
Originally Posted by Micko123
Посмотреть сообщение
try putting this
PHP код:
public OnPlayerPickUpPickup(playeridpickupid)
{
    if (
pickupid == bFlag)
    {
        
SendClientMessage(playerid0xF00000,"You picked up blue bag");
        if (
gTeam[playerid] == TEAM_BLUE)
        {
            
returner[playerid] = true;
            
returnedB true;
            
Returned(playerid);
            
DestroyPickup(bFlag);
        }
       if (
gTeam[playerid] == TEAM_RED)
        {
            
DestroyPickup(bFlag);
            new 
name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
            
GetPlayerName(playeridnamesizeof(name));
            
format(stringsizeof(string), "%s(Red) picked the bag"name);
            
SendClientMessageToAll(0xC4C4C4FFstring);
            
theif[playerid] = true;
            
DestroyPickup(bFlag);
            if (
helped[playerid] == true)
            {
            
helped[playerid] = false;
            }
        }
        
    }
    else if (
pickupid == rFlag)
    {
        
SendClientMessage(playerid0xF00000,"You picked up red bag");
        if (
gTeam[playerid] == TEAM_BLUE)
        {
            new 
name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
            
GetPlayerName(playeridnamesizeof(name));
            
format(stringsizeof(string), "%s(Blue) picked the bag"name);
            
SendClientMessageToAll(0xC4C4C4FFstring);
            
theif[playerid] = true;
            
DestroyPickup(rFlag);
            if (
helped[playerid] == true)
            {
            
helped[playerid] = false;
            }
        }
        if (
gTeam[playerid] == TEAM_RED)
        {
            
returner[playerid] = true;
            
returnedR true;
            
Returned(playerid);
            
DestroyPickup(rFlag);
        }
    }
  return 
1;

Still that problem
Reply


Messages In This Thread
Help in OnPlayerPickUpPickup(playerid,pickupid) - by Maheerali - 03.09.2016, 02:22
Re: Help in OnPlayerPickUpPickup(playerid,pickupid) - by Micko123 - 03.09.2016, 07:05
Re: Help in OnPlayerPickUpPickup(playerid,pickupid) - by Maheerali - 03.09.2016, 10:52

Forum Jump:


Users browsing this thread: 1 Guest(s)