Guten Tag, wenn ich /deagle eingebe Spawne ich in einen Anderen Arena
ocmd:fight(playerid,params[])
{
new rand = random(sizeof(FightSpawns));
SetPlayerPos(playerid,FightSpawns[rand][0],FightSpawns[rand][1],FightSpawns[rand][2]);
SetPlayerFacingAngle(playerid,FightSpawns[rand][3]);
new pName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s hat die 1o1 only Fightstyles (/fight) betreten.", pName);
SendClientMessageToAll(GRÜN, string);
Fight[playerid] = 1;
ResetPlayerWeapons(playerid); // Spieler Waffen entnehmen
return 1;
}
new Float:FightSpawns[][4] = {
{-586.1882,2597.7815,67.8969,173.2616},
{-595.4581,2597.4646,67.8969,175.1183}
};