19.11.2016, 19:20
Hi , How to i can make if
I'm and My Friendly in same Team i cant kill him?
i mean if I'm Grove and Him Grove i cant kill him because we in same team
From onplayerspawn
I'm and My Friendly in same Team i cant kill him?
i mean if I'm Grove and Him Grove i cant kill him because we in same team
From onplayerspawn
Код:
if(gTeam[playerid] == TEAM_GROVE) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); Team[playerid] = Create3DTextLabel("Grove Street Family",COLOR_GREEN,X, Y, Z+2.0,20.0,1); // Creating 3D Text Label Attach3DTextLabelToPlayer(Team[playerid],playerid,0,0,1.2); SetPlayerColor(playerid, COLOR_GREEN); GivePlayerWeapon(playerid, 24, 150); GivePlayerWeapon(playerid, 27, 200); GivePlayerWeapon(playerid, 31, 400); GivePlayerWeapon(playerid, 32, 300); GivePlayerWeapon(playerid, 16, 5); SetPlayerHealth(playerid, 100); new rand = random(sizeof(gRandomSpawns)); SetPlayerPos(playerid, gRandomSpawns[rand][0], gRandomSpawns[rand][1], gRandomSpawns[rand][2]); }