Random spawns.
#7

Quote:
Originally Posted by Peep
Quote:
Originally Posted by Fedee!
Oh, I forgot, also I need to give him a weapon, example, he tipes /dm and gives weapons and random spawns.
add weapon thing to here:

Code:
if(strcmp(cmdtext, "/rspawn", true) == 0)
    {
	new rand = random(sizeof(RandomSpawns));
	SetPlayerPos(playerid, RandomSpawns[rand][0], RandomSpawns[rand][1], RandomSpawns[rand][2]);
    SafeGivePlayerWeapon(playerid, 3, 1);
    SafeGivePlayerWeapon(playerid, 3, 1);
}
3 means weapon id and that 1 is bullet ammount.
Thanks!

**EDIT**

Got this error:
Quote:

C:\Documents and Settings\Feche!\Escritorio\Server SAMP\gamemodes\freeroam.pwn(1167) : error 017: undefined symbol "SafeGivePlayerWeapon"

Reply


Messages In This Thread
Random spawns. - by Fedee! - 12.01.2010, 20:54
Re: Random spawns. - by Stah - 12.01.2010, 20:56
Re: Random spawns. - by Fedee! - 12.01.2010, 21:00
Re: Random spawns. - by Fedee! - 12.01.2010, 21:02
Re: Random spawns. - by Fedee! - 12.01.2010, 21:17
Re: Random spawns. - by Peep - 12.01.2010, 21:24
Re: Random spawns. - by Fedee! - 12.01.2010, 21:34
Re: Random spawns. - by timmehhh - 12.01.2010, 22:38
Re: Random spawns. - by Fedee! - 12.01.2010, 22:53

Forum Jump:


Users browsing this thread: 1 Guest(s)