/Rob command... Help!
#6

Код:
if(strcmp(cmdtext, "/rob", true) == 0)
{
  new PlayerInterior;
	PlayerInterior = GetPlayerInterior(playerid);
	if(PlayerInterior(playerid) == 1 || PlayerInterior(playerid) == 4 || PlayerInterior(playerid) == 6 || PlayerInterior(playerid) == 7 || PlayerInterior(playerid) == 17 || PlayerInterior(playerid) == 10 || PlayerInterior(playerid) == 18 || PlayerInterior(playerid) == 16 || PlayerInterior(playerid) == 4 || PlayerInterior(playerid) == 6)
	{
		GivePlayerMoney(playerid,1000);
		SetPlayerWantedLevel(playerid,6);
		SetPlayerColor(playerid,AZUL);
		SendClientMessage(playerid, ROJO, "You did a rob!");
		return 1;
	}
	else
	{
		SendClientMessage(playerid,GRIS,"'You must be in a shop to commit a robbery!");
		return 1;
	}
	return 1;
}
Something like that....
Reply


Messages In This Thread
/Rob command... Help! - by Animals - 04.12.2007, 17:43
Re: /Rob command... Help! - by FujiNNN - 04.12.2007, 18:02
Re: /Rob command... Help! - by Valaskari - 04.12.2007, 18:16
Re: /Rob command... Help! - by Animals - 04.12.2007, 18:34
Re: /Rob command... Help! - by Nero_3D - 04.12.2007, 19:02
Re: /Rob command... Help! - by Valaskari - 04.12.2007, 19:22
Re: /Rob command... Help! - by [GM]The_Don - 04.12.2007, 19:23
Re: /Rob command... Help! - by Nero_3D - 04.12.2007, 19:27
Re: /Rob command... Help! - by cptnsausage - 04.12.2007, 21:49
Re: /Rob command... Help! - by GAMEOV3R - 07.12.2007, 12:23

Forum Jump:


Users browsing this thread: 2 Guest(s)