double antisk.
#1

<<>>
Reply
#2

Show us the code where you send that message.
Reply
#3

Quote:
Originally Posted by dusk
Посмотреть сообщение
Show us the code where you send that message.
maybe this?

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(Synching[playerid] == true)
    {
    Synching[playerid] = false;
    SetPlayerHealth(playerid,sHP[playerid]);
    SetPlayerArmour(playerid,sAP[playerid]);
    SetPlayerPos(playerid,sPos[playerid][0],sPos[playerid][1],sPos[playerid][2]);
    setskin(playerid);
    SendClientMessage(playerid,green,"Synced");
    ResetPlayerWeapons(playerid);
    for(new slot; slot < 13; slot ++)
    {
     GivePlayerWeapon(playerid,sWeap[playerid][slot],sAmmo[playerid][slot]);
    }
    return 1; // Prevent the rest of the onplayerspawn, because it's just a synchronizing isn't it?
    }
    Streak[playerid] = 0;
    SetPlayerHealth(playerid, 99999.0);
    SetTimerEx("SpawnProtection", 10000, false, "i", playerid);
    SendClientMessage(playerid, red, "*Anti-Spawn kill protection for 10 seconds!");
    AntiSK[playerid] = 1;
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 0);
    ResetPlayerWeapons(playerid);
    GivePlayerWeapons(playerid);
    PlayerPlaySound(playerid, 1184, 2127.2194,2368.6323,10.8203); //Stop music
    Update3DTextLabelText(DM[playerid], 0xFFFFFFFF, " ");
    Update3DTextLabelText(Dis[playerid], 0xFFFFFFFF, " ");
    TextDrawShowForPlayer(playerid, TeamText[playerid]);
    TextDrawHideForPlayer(playerid, CountText[playerid]);
    UpdateLabelText(playerid);
    UpdateTextdraw(playerid);
   
    if(PlayerInfo[playerid][Prestige1]==M4)
    { GivePlayerWeapon(playerid, 31, 200); }
    else if(PlayerInfo[playerid][Prestige1]==SPAS12)
    { GivePlayerWeapon(playerid, 27, 200); }
    else if(PlayerInfo[playerid][Prestige1]==TEC9)
    { GivePlayerWeapon(playerid, 32, 200); }
    else if(PlayerInfo[playerid][Prestige1]==MP5)
    { GivePlayerWeapon(playerid, 29, 200); }
    else if(PlayerInfo[playerid][Prestige1]==GRENADE)
    { GivePlayerWeapon(playerid, 16, 2); }
    else if(PlayerInfo[playerid][Prestige1]==SNIP)
    { GivePlayerWeapon(playerid, 34, 200); }
    else if(PlayerInfo[playerid][Prestige1]==COLT)
    { GivePlayerWeapon(playerid, 22, 200); }
    else if(PlayerInfo[playerid][Prestige1]==SILENCE)
    { GivePlayerWeapon(playerid, 23, 200); }
    else if(PlayerInfo[playerid][Prestige1]==SAWN)
    { GivePlayerWeapon(playerid, 26, 200); }
    else if(PlayerInfo[playerid][Prestige1]==AK47)
    { GivePlayerWeapon(playerid, 30, 200); }

    if(PlayerInfo[playerid][Prestige2]==M4)
    { GivePlayerWeapon(playerid, 31, 200); }
    else if(PlayerInfo[playerid][Prestige2]==SPAS12)
    { GivePlayerWeapon(playerid, 27, 200); }
    else if(PlayerInfo[playerid][Prestige2]==TEC9)
    { GivePlayerWeapon(playerid, 32, 200); }
    else if(PlayerInfo[playerid][Prestige2]==MP5)
    { GivePlayerWeapon(playerid, 29, 200); }
    else if(PlayerInfo[playerid][Prestige2]==GRENADE)
    { GivePlayerWeapon(playerid, 16, 2); }
    else if(PlayerInfo[playerid][Prestige2]==SNIP)
    { GivePlayerWeapon(playerid, 34, 200); }
    else if(PlayerInfo[playerid][Prestige2]==COLT)
    { GivePlayerWeapon(playerid, 22, 200); }
    else if(PlayerInfo[playerid][Prestige2]==SILENCE)
    { GivePlayerWeapon(playerid, 23, 200); }
    else if(PlayerInfo[playerid][Prestige2]==SAWN)
    { GivePlayerWeapon(playerid, 26, 200); }
    else if(PlayerInfo[playerid][Prestige2]==AK47)
    { GivePlayerWeapon(playerid, 30, 200); }

    if (!udb_Exists(PlayerName2(playerid)))
    {
      if(PlayerInfo[playerid][Registered] == 0)
      {
          SCM(playerid,COLOR_ORANGE,"You are not registered, use /register [password] to register an account.");
      }
    }
   
 // rest...

     if(FirstSpawn[playerid] == 1)
    {
        SendClientMessage(playerid, -1,"Please select your class");
        FirstSpawn[playerid] = 0;
        AntiSK[playerid] = 1;
        ShowPlayerDialog(playerid, CLASS_DIALOG, DIALOG_STYLE_LIST,"Class Selection",""ccolor"Assault - "ccolor2"Rank 0\n"ccolor"Sniper - "ccolor2"Rank 2\n"ccolor"Pilot - "ccolor2"Rank 9\n"ccolor"Engineer - "ccolor2"Rank 6\n"ccolor"JetTrooper - "ccolor2"Rank 7\n"ccolor"Support - "ccolor2"Rank 5\n"ccolor"Scout - "ccolor2"Rank 6\n"ccolor"Spy - "ccolor2"Rank 7\n"ccolor"Donor - "ccolor2"For Donators only","Select","");
    }

     if(!IsPlayerAnimsPreloaded[playerid])
    {
        AnimPreloadForPlayer(playerid,
           "BOMBER");
        AnimPreloadForPlayer(playerid,
           "RAPPING");
        AnimPreloadForPlayer(playerid,
            "SHOP");
        AnimPreloadForPlayer(playerid,
           "BEACH");
        AnimPreloadForPlayer(playerid,
           "SMOKING");
        AnimPreloadForPlayer(playerid,
            "FOOD");
        AnimPreloadForPlayer(playerid,
            "ON_LOOKERS");
        AnimPreloadForPlayer(playerid,
            "DEALER");
        AnimPreloadForPlayer(playerid,
            "CRACK");
        AnimPreloadForPlayer(playerid,
            "CARRY");
        AnimPreloadForPlayer(playerid,
            "COP_AMBIENT");
        AnimPreloadForPlayer(playerid,
            "PARK");
        AnimPreloadForPlayer(playerid,
            "INT_HOUSE");
        AnimPreloadForPlayer(playerid,
            "FOOD");
        IsPlayerAnimsPreloaded[playerid] = 1;
    }
Reply
#4

nevermind. fixed after romoving 'spawnplayer(playerid)'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)