Help with randomspawns in a dm area after they used a command.
#1

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.

Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)