Jump to content
Sign in to follow this  
Yamakashi

Przerobienie

Recommended Posts

Witam. Czy ktoś mógłby mi pomóc przerobić to

Cytat

stock GetRandomPlayer(team)
{
    
    new g_random_player = GetConVarInt(Random_player);
    new clients[MaxClients + 1], clientCount;
    
    for (new i = 1; i <= MaxClients; i++)
    if (IsClientInGame(i))
    clients[clientCount++] = i;
    
    if (clientCount <= g_random_player)
    return -1;
    
    return clients[GetRandomInt(0, clientCount - 1)];
}

 na nową składnię.

Share this post


Link to post
Share on other sites
Spoiler

stock GetRandomPlayer(team)
{
    
    int g_random_player = GetConVarInt(Random_player);
    int clients[MaxClients + 1], clientCount;
    
    for (int i = 1; i <= MaxClients; i++)
    if (IsClientInGame(i))
    clients[clientCount++] = i;
    
    if (clientCount <= g_random_player)
    return -1;
    
    return clients[GetRandomInt(0, clientCount - 1)];
}

 

Edited by Marshall

Share this post


Link to post
Share on other sites

stock int GetRandomPlayer(int team)
{
    
    int g_random_player = GetConVarInt(Random_player);
    int clients[MaxClients + 1], clientCount;
    
    for (int i = 1; i <= MaxClients; i++)
    if (IsClientInGame(i))
    clients[clientCount++] = i;
    
    if (clientCount <= g_random_player)
    return -1;
    
    return clients[GetRandomInt(0, clientCount - 1)];
}

Share this post


Link to post
Share on other sites
2 godziny temu, live4net napisał:

stock int GetRandomPlayer(int team)
{
    
    int g_random_player = GetConVarInt(Random_player);
    int clients[MaxClients + 1], clientCount;
    
    for (int i = 1; i <= MaxClients; i++)
    if (IsClientInGame(i))
    clients[clientCount++] = i;
    
    if (clientCount <= g_random_player)
    return -1;
    
    return clients[GetRandomInt(0, clientCount - 1)];
}

plz use code or cytat 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By HEADSHOT
      Siema 
      Czy jest ktoś w stanie przerobić plugin na spadochron https://forums.alliedmods.net/showthread.php?p=580269 aby spadochronu mogła używać tylko osoba z flagą a?
    • By TheSzymek
      Witam,
      Czy ktoś potrafi przerobić albo pomóc mi przerobić plugin na duszka po śmierci tak żeby tylko gracz z określoną flaga go miał?
      Flaga "t"
       
      Czy można to zrobić w jakiś inny sposób?
       
      Link do pluginu
      https://forums.allie...ad.php?t=302156
    • By Patrik
      Opis: Zlecę przerobienie mapek arenek (1vs1) chodzi o to, aby mapy były przerobione pod 64 sloty. Cena: dogadamy się Płatność: przelew/paypal Kontakt: STEAM: http://steamcommunity.com/id/real2017
×
×
  • Create New...