Zone - /taketurf
#1

well i made my gangwar gamemode but i need /taketurf if you type that in skull pickup
the gangzone will flash for 3 minutes. also if the skull is on the team base

Example:
your a ballas and the pickup is for enemies when you go to the pickup it will say

"You cant take turf your own team base"

Please help me guys heres my Gamemode Code:

pawn Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
    return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
    return 1;
}

public OnRconCommand(cmd[])
{
    return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    return 1;
}

public OnObjectMoved(objectid)
{
    return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == BallasPickup)
    {
      if(gTeam[playerid] == TEAM_BALLAS)
      {
         SendClientMessage(playerid, COLOR_RED, "You cant takeover your team zone!");
      }
      else
      {
         SendClientMessage(playerid, COLOR_RED, "Your in the base of ballas. use /taketurf to take the turf of the ballas zone!");
      }
    }
    return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)