SA-MP Forums Archive
[HELP] Command dm! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Command dm! (/showthread.php?tid=143356)



[HELP] Command dm! - J. - 22.04.2010

Hello, how do I put down only arena 2 player battle. Can anyone help me?

Код:
if (strcmp(cmdtext,"/battle", 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 battle (/battle)", pname);
    SendClientMessageToAll(COLOR_NEW, string);
    GivePlayerWeapon(playerid,4,0);
    GivePlayerWeapon(playerid,26,500);
    GivePlayerWeapon(playerid,31,500);
    GivePlayerWeapon(playerid,24,500);
    GivePlayerWeapon(playerid,32,500);
	return 1;
	}