//Top of OnGameModeInit
//Area Spawns
new Float:MiniGun[][11] =
{
{260.8499,1864.5936,8.7578},
{263.3390,1816.5818,1.0078},
{245.2608,1859.4283,14.0840},
{260.9647,1864.4512,8.7578},
{245.3346,1825.6334,4.7109},
{289.2293,1838.5914,7.7266},
{275.6954,1856.5381,8.7578},
{262.9784,1878.3918,-6.0000},
{262.3712,1885.5338,-30.3906},
{269.0396,1876.5802,-22.2449}
};
new Float:RandomSpawn[][6] =
{
{595.3576,828.6940,-42.8361},
{693.4980,902.1960,-39.1213},
{619.8586,892.3693,-37.1285},
{632.1663,822.9274,-42.8269},
{577.1036,871.0527,-43.5810}
};
//OnplayerSpawn
if(GetPVarInt(playerid,"MiniGun"))
{
new rand = random(sizeof(MiniGun));
SetPlayerPos(playerid, MiniGun[rand][0], MiniGun[rand][1], MiniGun[rand][2]);
return 1;
}
if(GetPVarInt(playerid,"Deagle"))
{
new rand = random(sizeof(RandomSpawn));
SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
}
//OnPlayerCommandText
if(strcmp(cmdtext, "/minigun", true) == 0)
{
new rand = random(sizeof(MiniGun));
SetPlayerPos(playerid, MiniGun[rand][0], MiniGun[rand][1], MiniGun[rand][2]);
new string[158];
format(string, sizeof(string), "%s hat /minigun betreten",SpielerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE,string);
SetPVarInt(playerid,"Arena",1);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,38,100000);
return 1;
}
if(strcmp(cmdtext, "/deagle", true) == 0)
{
new rand = random(sizeof(RandomSpawn));
SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
new string[158];
format(string,sizeof(string),"%s hat DM /deagle betreten",SpielerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE,string);
SetPVarInt(playerid,"Arena",1);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,1000);
return 1;
}
und...... das geht nicht!
if (strcmp("/leave", cmdtext, true, 10) == 0)
{
new str[128];
if(GetPVarInt(playerid,"MiniGun")==1)
{
SetPVarInt(playerid,"MiniGun",0);
SetPlayerPos(playerid,-1982.6919,156.0836,27.6875);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,200);
GivePlayerWeapon(playerid,25,200);
GivePlayerWeapon(playerid,29,400);
format(str, sizeof(str),"%s hat DM Arena /minigun VERLASSEN!",SpielerName(playerid));
SendClientMessageToAll(COLOR_BLUE,str);
return 1;
}
else if(GetPVarInt(playerid,"Deagle")==1)
{
SetPVarInt(playerid,"Deagle",0);
SetPlayerPos(playerid,-1982.6919,156.0836,27.6875);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,200);
GivePlayerWeapon(playerid,25,200);
GivePlayerWeapon(playerid,29,400);
format(str, sizeof(str),"%s hat DM Arena /deagle VERLASSEN!",SpielerName(playerid));
SendClientMessageToAll(COLOR_BLUE,str);
return 1;
}
return 1;
}
Bitte HILFE.... aber bitte Hilfe und net nur fehler aufzählen wie maxi.....