SA-MP Forums Archive
Help with randomspawns in a dm area after they used a command. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with randomspawns in a dm area after they used a command. (/showthread.php?tid=89905)



Help with randomspawns in a dm area after they used a command. - speedruntrainer - 04.08.2009

Hello again. Can someone help me with a random spawn INSIDE a dm area after they used a command.

I only have ONE pos players teleports but that's NOT what I want.
So like this I don't: for example the LV fightclub arena with only ONE pos >.<

pawn Код:
if(strcmp(cmdtext, "/fightclub", true) == 0) {
new pName[MAX_PLAYER_NAME];
new string[256];
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 100);
GivePlayerWeapon(playerid, 32, 5000);
GivePlayerWeapon(playerid, 26, 5000);
GivePlayerWeapon(playerid, 31, 5000);
SetPlayerVirtualWorld(playerid, 1); //Players will teleport to this world to prevent abuse of the command.
SetPlayerArmour(playerid, 100);
ResetPlayerMoney(playerid);
SetPlayerPos(playerid, 2102.84, 2186.23, 14.50);
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s has joined LV FightClub. Use /fightclub to join it", pName);
SendClientMessageToAll(0xFFFF00AA, string);
return 1;
}
^This? NO., So can you help me making those pos's random?

Thanks.




Re: Help with randomspawns in a dm area after they used a command. - speedruntrainer - 05.08.2009

Bump. Not really sure if 12 hours were passed. The forum time is so different :/