|
|
#1 |
|
Little Clucker
![]() Join Date: Apr 2010
Posts: 21
Reputation: 0
|
Can anyone help me make this arena only allows two players compete dm. If another player wants to get a message "The arena is full"!
Thanks Code:
if (strcmp(cmdtext,"/x1", true)==0)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1531.834,-1131.411,135.488);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s was to x1 (/x1)", pname);
SendClientMessageToAll(COLOR_RED, string);
GivePlayerWeapon(playerid,4,0);
GivePlayerWeapon(playerid,26,500);
GivePlayerWeapon(playerid,31,500);
GivePlayerWeapon(playerid,24,500);
GivePlayerWeapon(playerid,32,500);
return 1;
}
|
|
|
|
|
#2 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Aug 2008
Location: Denmark
Posts: 533
Reputation: 2
|
Global: new Isx1Full;
Code:
if (strcmp(cmdtext,"/x1", true)==0)
{
if(Isx1Full == 2)
{
SendClientMessage(playerid, COLOR_RED, "DM x1 is full!");
}
else
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1531.834,-1131.411,135.488);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s was to x1 (/x1)", pname);
SendClientMessageToAll(COLOR_RED, string);
GivePlayerWeapon(playerid,4,0);
GivePlayerWeapon(playerid,26,500);
GivePlayerWeapon(playerid,31,500);
GivePlayerWeapon(playerid,24,500);
GivePlayerWeapon(playerid,32,500);
if(Isx1Full == 0) { Isx1Full = 1; } else { Isx1Full = 2; }
}
return 1;
}
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Map] [MAP] Juice DM Arena | Crazy_Cena | Maps | 10 | 02/03/2011 08:40 PM |
| [AJUDA] ARENA | judson diogo | Português/Portuguese | 5 | 18/03/2010 01:21 PM |
| Help with dm Arena | Eazy_E214 | Help Archive | 3 | 02/10/2009 04:55 PM |
| ID? Arena with grass? | urkiefly101 | Help Archive | 5 | 22/08/2009 12:16 PM |