I need a hand on this code please!
#1

I Have A MiniGun WarZone

I Was With Problems Having the randoms Spawns, then some one in this forum helped me...

And I Want It To Add:

Код:
 SendClientMessageToAll(playerid, "%s entered in /minigun deathmatch");
something near this to this code:

Код:
}
	if (strcmp("/minigun", cmdtext, true,10) == 0)
	{
	if(GetPlayerMoney(playerid) >= 1000)
	{
	SendClientMessage(playerid, COLOR_GREY, "Acabaste de entrar na MiniGun DeathMatch");
	SendClientMessage(playerid, COLOR_RED, "LUTA!!!");
	SetPlayerColor(playerid, 14);
	SetPlayerHealth(playerid,100);
	SetPlayerArmour(playerid,100);
  new Float:SpawnRandomico[10][12] = {
  {-2185.6641,-247.9104,40.7195},
  {-2141.2517,-233.1832,36.5156},
  {-2186.3408,-208.0707,36.5156},
  {-2175.0557,-235.4763,40.3849},
  {-2143.4038,-265.6692,36.5156},
  {-2184.3438,-262.8202,40.7195},
  {-2162.0491,-268.8615,40.7195},
  {-2142.8584,-262.9359,40.7195},
  {-2185.3477,-248.5821,36.5156},
  {-2140.1064,-235.6455,40.4382}
  };
  new rand = random(sizeof(SpawnRandomico));
  SetPlayerPos(playerid, SpawnRandomico[rand][0], SpawnRandomico[rand][1], SpawnRandomico[rand][2]);
  ResetPlayerWeapons(playerid);
	GivePlayerWeapon(playerid,38,50000);
	GivePlayerMoney(playerid, -1000);
	GameTextForPlayer(playerid,"-~y~1000", 1000, 6);
	}
	else
  {
		 SendClientMessage(playerid, COLOR_RED, "Nгo tens 1000$!");
		 return 1;
		 }
I'm A PAWNO Begginer

And Sorry for my Bad English if so cause I'm portuguese
Reply
#2

pawn Код:
new str[128];
GetPlayerName(playerid, str, MAX_PLAYER_NAME);
format(str, sizeof str, "%s entered in /minigun deathmatch", str);
SendClientMessageToAll(COLOR_GREY, str);
And, you should place SpawnRandomico at the top of the script
Reply
#3

Quote:
Originally Posted by Nubotron
pawn Код:
new str[128];
GetPlayerName(playerid, str, MAX_PLAYER_NAME);
format(str, sizeof str, "%s entered in /minigun deathmatch", str);
SendClientMessageToAll(COLOR_GREY, str);
And, you should place SpawnRandomico at the top of the script
Whoa It Works!!
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)