remove gteam how
#1

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
Reply
#2

If you dont want to delete it you can just put this in OnPlayerLogin
gTeam[playerid] = 0;
Reply
#3

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?
Reply
#4

this not work.
Please help me
Reply
#5

You mean you dont want teams in your GM?

If yes, Post the code!
Reply
#6

no. Just remove player from team in dm( which are in world 1)
Reply
#7

Without code its impossible, We are not mind readers <!>
Reply
#8

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)