remove gteam how - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: remove gteam how (
/showthread.php?tid=278876)
remove gteam how -
MA_proking - 24.08.2011
I m using a team tDM in which gteam I m using but there is also dm so please tell me how to remove player from team.
because in dm player get -ve points on Team killing
NOTE: DMs are in other worlds
Re: remove gteam how -
Dragony92 - 24.08.2011
If you dont want to delete it you can just put this in OnPlayerLogin
gTeam[playerid] = 0;
Re: remove gteam how -
MA_proking - 24.08.2011
Quote:
Originally Posted by Dragony92
If you dont want to delete it you can just put this in OnPlayerLogin
gTeam[playerid] = 0;
|
Does it set player in any team or no team?
Re: remove gteam how -
MA_proking - 25.08.2011
this not work.
Please help me
Re: remove gteam how -
Davz*|*Criss - 25.08.2011
You mean you dont want teams in your GM?
If yes, Post the code!
Re: remove gteam how -
MA_proking - 25.08.2011
no. Just remove player from team in dm( which are in world 1)
Re: remove gteam how -
Davz*|*Criss - 25.08.2011
Without code its impossible, We are not mind readers <

!

>
Re: remove gteam how -
MA_proking - 25.08.2011
pawn Код:
dcmd_dm1(playerid, cmdtext[]) {
#pragma unused cmdtext
if((mg[playerid] == 1)||(dm1[playerid] == 1) || (dm2[playerid] == 1) || (dm4[playerid] == 1) || (dm5[playerid] == 1) || (dm6[playerid] == 1) || (derby[playerid] == 1)) return SendClientMessage(playerid, COLOR_ORANGE,"*~* You are already in a DM! Type, (/leave) to leave the DM! *~*");
gTeam[playerid] = 0;
new rand = random(sizeof(dm1RandomSpawns));
SetPlayerPos(playerid, dm1RandomSpawns[rand][0], dm1RandomSpawns[rand][1], dm1RandomSpawns[rand][2]);
SendClientMessageToAll(COLOR_ORANGE, "*~* |DM NEWS| *~* A player has joined the RUNNIES WEAPONS death-match! ( /dm1 ) *~*");
ResetPlayerWeapons(playerid);
SetPlayerVirtualWorld(playerid, 1);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
GivePlayerWeapon(playerid, 22, 99999);
GivePlayerWeapon(playerid, 26, 99999);
GivePlayerWeapon(playerid, 28, 99999);
dm1[playerid] = 1;
return 1;
}