Szerző Téma: Valaki Gang zona help !!  (Megtekintve 473 alkalommal)

Valaki Gang zona help !!
« Dátum: 2012. december 30. - 08:58:57 »
0 Show voters
Az a bajom hogy nem lehet elfoglalni a területet.. Csak villog meg kapom a jutalmam és kész... a területet nem veszi át... nem lesz más színû, csak miközben a check point ban állok. MI lehet a gond??
 
   public OnPlayerSpawn(playerid)
{
    GangZoneShowForPlayer(playerid, VLAZONE, COLOR_LIGHTBLUE);
GangZoneShowForPlayer(playerid, VAGOSZONE, COLOR_ORANGE);
    GangZoneShowForPlayer(playerid, BALLASZONE, COLOR_PURPLE);
GangZoneShowForPlayer(playerid, GROVEZONE, COLOR_GREEN);
    SetPlayerHealth(playerid,99999);
    SetTimerEx(\"AntiSpawnKill\",6000,0,\"i\",playerid);
    SendClientMessage(playerid,COLOR_GREEN,\"Anti Spawn Ölj aktivan 6 másodpercig\");
    new PlayerName[MAX_PLAYER_NAME],
    string[128];
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
    format(string, sizeof(string), \"%s Spawn !.\", PlayerName);
    SendClientMessageToAll(0x33AA33AA, string);
    SetPlayerArmour(playerid, 100.0);
    if(GetPlayerTeam(playerid) == BALLAS)
    {
        SetPlayerColor(playerid, COLOR_PURPLE);
        SetPlayerRandomBallasSpawn(playerid);
    }
    else if(GetPlayerTeam(playerid) == GROVE)
    {
        SetPlayerColor(playerid, COLOR_GREEN);
        SetPlayerRandomGroveSpawn(playerid);
    }
    else if(GetPlayerTeam(playerid) == VAGOS)
    {
        SetPlayerColor(playerid, COLOR_ORANGE);
        SetPlayerRandomVagosSpawn(playerid);
    }
    else if(GetPlayerTeam(playerid) == AZTECA)
    {
        SetPlayerColor(playerid, COLOR_LIGHTBLUE);
        SetPlayerRandomAztecaSpawn(playerid);
    }
    return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
    pInfo[killerid][Kills]++;
    pInfo[playerid][Deaths]++;
    GivePlayerMoney(killerid, 500);
    SendDeathMessage(killerid, playerid, reason);
    if(killerid != INVALID_PLAYER_ID)
    {
        pScore[killerid]++;
        SetPlayerScore(killerid, pScore[killerid]);
    }
    pDeaths[playerid]++;
    pScore[playerid]--;
    SetPlayerScore(playerid, pScore[playerid]);
    if(Suicide[playerid] == 1)
    {
        Suicide[playerid] = 0;
    }
    else
    {
      GivePlayerMoney(playerid, -500);
    }
    return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid,text[])
{
    if((GetTickCount() - GetPVarInt(playerid, \"AntiSpam\")) > 10000)
    {
        SendClientMessageToAll(-1, text);
        SetPVarInt(playerid, \"AntiSpam\", GetTickCount());
    }
    else
    {
        SendClientMessage(playerid, -1, \"Várnod kell 10 másod percet a következõ parancsig\");
    }
    if(text[0] == \'#\')
    {
        new string[128];  GetPlayerName(playerid, string, sizeof(string));
        format(string, sizeof(string), \"[Team Radio] %s: %s\", string, text[1]);
        printf(\"%s\", string);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) && GetPlayerTeam(i) == GetPlayerTeam(playerid)) SendClientMessage(i, GetPlayerColor(playerid), string);
        }
        return 0;
    }
    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == CP1) {
   if(IsPlayerInDynamicCP(playerid, CP1)) {
      Streamer_UpdateEx(playerid,1969.9218,-1180.3903,25.8947);
            SendClientMessage(playerid, COLOR_GREY, \"Várj 20 másodpercet - Elfoglald ezt a területet\");
          GangZoneFlashForAll(BALLAS,COLOR_WHITE);
          SendClientMessageToAll(COLOR_RED, \"A gangzonát átvette!!\");
          timer = SetTimerEx(\"SetZone\", 20000, false, \"i\", playerid);
          Checkpoint[playerid] = 1;
   }
}
if(checkpointid == CP2) {
   if(IsPlayerInDynamicCP(playerid, CP2)) {
      Streamer_UpdateEx(playerid, 2495.9346,-1671.6412,13.3359);
          SendClientMessage(playerid, COLOR_GREY, \"Várj 20 másodpercet - Elfoglald ezt a területet\");
          GangZoneFlashForAll(GROVE,COLOR_WHITE);
          SendClientMessageToAll(COLOR_RED, \"A gangzonát átvette!!\");
          timer = SetTimerEx(\"SetZone\", 20000, false, \"i\", playerid);
          Checkpoint[playerid] = 1;
   }
}
if(checkpointid == CP3) {
   if(IsPlayerInDynamicCP(playerid, CP3)) {
      Streamer_UpdateEx(playerid,2335.6187,-1163.0288,27.0380);
           SendClientMessage(playerid, COLOR_GREY, \"Várj 20 másodpercet - Elfoglald ezt a területet\");
          GangZoneFlashForAll(VAGOS,COLOR_RED);
          SendClientMessageToAll(COLOR_RED, \"A gangzonát átvette!!\");
          timer = SetTimerEx(\"SetZone\", 20000, false, \"i\", playerid);
          Checkpoint[playerid] = 1;
   }
}
if(checkpointid == CP4) {
   if(IsPlayerInDynamicCP(playerid, CP4)) {
      Streamer_UpdateEx(playerid,1780.4540,-2118.7056,13.5543);
           SendClientMessage(playerid, COLOR_GREY, \"Várj 20 másodpercet - Elfoglald ezt a területet\");
          GangZoneFlashForAll(AZTECA,COLOR_RED);
          SendClientMessageToAll(COLOR_RED, \"A gangzonát átvette!!\");
          timer = SetTimerEx(\"SetZone\", 20000, false, \"i\", playerid);
          Checkpoint[playerid] = 1;
   }
}
return 1;
}/*
public OnPlayerEnterCheckpoint(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 1969.9218,-1180.3903,25.8947, 4))
    {
       SendClientMessage(playerid, COLOR_GREY, \"Várj 20 másodpercet - Elfoglald ezt a területet\");
       GangZoneFlashForAll(BALLAS,COLOR_RED);
       SendClientMessageToAll(COLOR_RED, \"A gangzonát átvette!!\");
       timer = SetTimerEx(\"SetZone\", 20000, false, \"i\", playerid);
       Checkpoint[playerid] = 1;
    }
    if(IsPlayerInRangeOfPoint(playerid, 2495.9346,-1671.6412,13.3359, 4))
    {
       SendClientMessage(playerid, COLOR_GREY, \"Várj 20 másodpercet - Elfoglald ezt a területet\");
       GangZoneFlashForAll(GROVE,COLOR_RED);
       SendClientMessageToAll(COLOR_RED, \"A gangzonát átvette!!\");
       timer = SetTimerEx(\"SetZone\", 20000, false, \"i\", playerid);
       Checkpoint[playerid] = 1;
    }
    if(IsPlayerInRangeOfPoint(playerid, 2335.6187,-1163.0288,27.0380, 4))
    {
       SendClientMessage(playerid, COLOR_GREY, \"Várj 20 másodpercet - Elfoglald ezt a területet\");
       GangZoneFlashForAll(VAGOS,COLOR_RED);
       SendClientMessageToAll(COLOR_RED, \"A gangzonát átvette!!\");
       timer = SetTimerEx(\"SetZone\", 20000, false, \"i\", playerid);
       Checkpoint[playerid] = 1;
    }
    if(IsPlayerInRangeOfPoint(playerid, 1780.4540,-2118.7056,13.5543, 4))
    {
       SendClientMessage(playerid, COLOR_GREY, \"Várj 20 másodpercet - Elfoglald ezt a területet\");
       GangZoneFlashForAll(AZTECA,COLOR_RED);
       SendClientMessageToAll(COLOR_RED, \"A gangzonát átvette!!\");
       timer = SetTimerEx(\"SetZone\", 20000, false, \"i\", playerid);
       Checkpoint[playerid] = 1;
    }
    return 1;
}
*/
public OnPlayerLeaveCheckpoint(playerid)
{
    if(Checkpoint[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_RED, \" Elhagytad az ellenörzõ pontot, nem sikerült átvenni!!\");
        GangZoneStopFlashForAll(BALLAS);
        GangZoneStopFlashForAll(GROVE);
        GangZoneStopFlashForAll(VAGOS);
        GangZoneStopFlashForAll(AZTECA);
        SendClientMessageToAll(COLOR_GREEN, \"A területet nem vették át !!\");
        KillTimer(timer);
        Checkpoint[playerid] = 0;
    }
    return 1;
}

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal