how to do it?
#1

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
Код:
	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]);
	}
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerTeam
Reply
#3

EDIT: nvm, AndySedeyn answered before i could do.
Reply
#4

im not understand From wiki . Just give me Full info
Reply
#5

Read "give me code so i can copy-paste and reply with more errors in my script". The wiki has an example.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)