Posts: 47
Threads: 6
Joined: Oct 2013
Reputation:
0
guys i have made a dm the cmd to enter dm is /dm..... in my game mode i have 5 teams and a team Mercenary...the specialty of Mercenary is that in Mercenary team members can fight each other all i need is to set player team to Mercenary when they type /dm how to do ......
Posts: 47
Threads: 6
Joined: Oct 2013
Reputation:
0
please help me i am a noob scripter
Posts: 47
Threads: 6
Joined: Oct 2013
Reputation:
0
COMMAND:dm(playerid, params[])
{
dmarena[playerid] = 1;
//Random Spawns
new rand = random(sizeof(DMRandomSpawns));
SetPlayerPos(playerid, DMRandomSpawns[rand][0], DMRandomSpawns[rand][1], DMRandomSpawns[rand][2]);
SetPlayerSkin(playerid, 230);
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
GivePlayerWeapon(playerid, 9, 99999999);
GivePlayerWeapon(playerid, 24, 99999999);
GivePlayerWeapon(playerid, 32, 99999999);
GivePlayerWeapon(playerid, 26, 99999999);
GivePlayerWeapon(playerid, 31, 99999999);
GivePlayerWeapon(playerid, 34, 99999999);
SendClientMessage(playerid,0xFFFFFFF, "To exit the DM arena use /exitdm");
return 1;
}
COMMAND:exitdm(playerid, params[])
{
dmarena[playerid] = 0;
SetPlayerHealth(playerid, 0);
return 1;
}
Posts: 47
Threads: 6
Joined: Oct 2013
Reputation:
0
Found Some solution
1.SetPlayerTeam(playerid, NO_TEAM);
2.SetPlayerTeam (playerid,playerid+6);
both of these work but ...
these two have a bug using this team members can kill each other but alert message (abti team attack message appears what to do" is there any way to disable alert message in dm area alone??
if would be better if someone find a way to set team to Mercenary..