12.01.2010, 21:24
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.
|
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); }