/exitdm
if (strcmp("/exitdm", cmdtext, true) == 0)
{
if(DMZone[playerid] = 1)
{
SendClientMessage(playerid,yellow,"Du bist in keinem DM");
return 1;
}
DMZone[playerid] = 0;
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 1041.2393,-1036.4368,31.7359);
SendClientMessage(playerid, COLOR_BLUE, "Du hast das Deathmatch verlassen.");
ResetPlayerWeapons(playerid);
/2edm
if (strcmp("/2edm", cmdtext, true) == 0)
{
DMZone[playerid] = 1;
SetPlayerPos(playerid, -0.4912,-3383.6975,17.0448);//hier kommt das hin wo die hin sollen ;)
GivePlayerWeapon(playerid, 16, 999); //Waffen die 24 ist die ID und das 999 die kugeln
GivePlayerWeapon(playerid, 31, 999);// hier ist das auch so
GivePlayerWeapon(playerid, 34, 999);// hier ist das auch so
SetPlayerFacingAngle(playerid, 360);
SendClientMessage(playerid, COLOR_BLUE, "Willkommen beim 2 Etagen Death-Match");
SetPlayerInterior(playerid, 0);
spawntimer = SetTimerEx("spawntime",4000,0,"d",playerid);
TogglePlayerControllable(playerid,0);
GameTextForPlayer(playerid, "~g~Map wird geladen bitte warten!", 4000, 4);
return 1;
}
z.B /sfpark
if (strcmp("/sfpark", cmdtext, true) == 0)
{
if(DMZone[playerid] == 1) return SendClientMessage(playerid,COLOR_RED, "Benutz /exitdm um den Befehl zu nutzen.");
new tmpcar = GetPlayerVehicleID(playerid);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, -2679.3127,1349.2620,16.9978);
SetVehiclePos(tmpcar, -2679.3127,1349.2620,16.9978);
SendClientMessage(playerid, COLOR_BLUE, "Du bist nun im San Firero Stunt Park");
PutPlayerInVehicle(playerid,tmpcar,0);
spawntimer = SetTimerEx("spawntime",3000,0,"d",playerid);
TogglePlayerControllable(playerid,0);
GameTextForPlayer(playerid, "~g~Map wird geladen bitte warten!", 3000, 4);
ResetPlayerWeapons(playerid);
MFG
Ed_Hardy