SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Русский/Russian

Closed Thread
 
Thread Tools Display Modes
Old 19/06/2010, 04:34 AM   #1
Nikid
Huge Clucker
 
Join Date: Feb 2010
Posts: 415
Reputation: 4
Default /arena rand

Code:
dcmd_arenas(playerid,params[])
{
if(Current != -1) return SendClientMessage(playerid, AAD_COLOR_GREY, "Дождитесь окончания раунда");
if(Player[playerid][pVoted]) return SendClientMessage(playerid, AAD_COLOR_GREY, " Вы уже отдали свой голос");
if(!strval(params)) return SendClientMessage(playerid, AAD_COLOR_GREY, "/arena rand");
if(aplayers < 1 || dplayers < 1)return SendClientMessage(playerid, AAD_COLOR_GREY, "Все игроки в 1 тиме");
new rand = strval(params);
if(rand == rand) return SendClientMessage(playerid, AAD_COLOR_GREY, "/arena rand");
new arenaid = random(VArenas-1);
new string[70];
VotedArena[arenaid]++;
Votes[arenaid] = Votes[arenaid] +1;
Player[playerid][pVoted] = true;
format(string,70,"%s проголосовал за cлучайную арену ", PNames[playerid]);
SendClientMessageToAll(COLOR_Green, string);
if(Votes[arenaid] >= 6)
{
Voting = false;
ArenaStartMode(arenaid);
}
if(!Voting)
{
Voting = true;
new i;
while((i < MAX_ARENAS) || (i <= maxid))
{
if(i < MAX_ARENAS && i != arenaid) Votes[i] = 0;
if(i < maxid&& i != playerid) Player[i][pVoted] = false;
i++;
}
VotingTime = 20;
ArenaVoteMove();
}
return 1;
}
Как сделать, чтоб можно было вводить не /arenas 3, а место цифры было слово или буква? То есть запускалась случайная арена по команде /arenas rand

модер
темы с непонятными названиями будут закрыты,
даю возможность назвать тему более конкретно
Nikid is offline  
Old 19/06/2010, 10:35 AM   #2
MX_Master
Huge Clucker
 
Join Date: Jul 2007
Posts: 395
Reputation: 0
Default Re: /arena rand

тема так и осталась с непонятным названием. закрыто.
MX_Master is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Map] [MAP]Deathmatch arena Roperr Maps 23 18/08/2012 12:08 PM
need help agen with Rand Teleports rs2fun111 Help Archive 5 17/05/2010 04:36 AM
[Help]Team dm rand spawns! Darkly_Face Help Archive 2 19/01/2010 06:38 PM
Help with dm Arena Eazy_E214 Help Archive 3 02/10/2009 04:55 PM
color rand Serediucr Help Archive 2 01/07/2009 08:18 AM


All times are GMT. The time now is 03:15 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.