06.02.2009, 21:24
Quote:
Originally Posted by Mikeshake
I told you.
|
pawn Код:
if (strcmp(cmdtext, "/dm", true)==0)
{
SetPlayerWorldBounds(playerid,9999999999.0,-99999999999.0,999999999999.0,-99999999999.0);
new rand = random(sizeof(gRandomDmSpawns));
GameTextForPlayer(playerid,"~w~ DeathMatch Zone",3,1);
new name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "*** %s teleported to the DeathMatch Zone ( command /dm ).", name);
SendClientMessageToAll(COLOR_YELLOW, string);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, gRandomDmSpawns[rand][0],gRandomDmSpawns[rand][1],gRandomDmSpawns[rand][2]);
SetPlayerFacingAngle(playerid, gRandomDmSpawns[rand][3]);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 32, 2000);
GivePlayerWeapon(playerid, 30, 1000);
GivePlayerWeapon(playerid, 24, 500);
return 1;
}