Jump to content
  • 0

Tutorial adaugare Culori [GF Mod]


Guest ZFun

Question

Vreti sa modificati culoarea la factiuni si nu stiti cum? Sau vreti sa aveti culori la factiuni?

Cautati liniile

public SetPlayerToTeamColor(playerid)
{
	if(IsPlayerConnected(playerid))
	{
Si adaugati acolo :
		if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
		SetPlayerColor(playerid,COLOR_LIGHTRED);
In loc de 1 puteti pune orice id de la orice factiuni doriti... in loc de COLOR_LIGHTRED puteti pune orice culoare,[dar sa o aveti definita in gm] Ca sa faceti culori la mai multe factiuni sau la toate, adaugati mai multe din acestea...
		if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
		SetPlayerColor(playerid,COLOR_LIGHTRED);
		if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
		SetPlayerColor(playerid,COLOR_Grove);
		if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
		SetPlayerColor(playerid,COLOR_White);

Sper ca am explicat bine... dak aveti nelamuriri reply

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Incearca asta

	    if (PlayerInfo[playerid][pAdmin] >= 1) //admin color
	    SetPlayerColor(playerid,COLOR_VLV);
Cred k merge.. pui tot acolo unde se pun si celelalte... la
public SetPlayerToTeamColor(playerid)
{
	if(IsPlayerConnected(playerid))
	{

Link to comment
Share on other sites

  • 0
Guest Mariachi

Modifica

if(PlayerInfo[playerid][pMember] == 1) { SetPlayerColor(playerid, COLOR_BLUE); } //Cop
      	if(PlayerInfo[playerid][pLeader] == 1) { SetPlayerColor(playerid, COLOR_BLUE); } //Cop

Acum apar si membrii 'colorati' . Inainte la mine nu apareau

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Similar Content

    • By Wreeper
      Salut. M-am gandit de recent sa bag niste culori noi la texte, dar nu vad cum pot sa fac asta. SA:MP e SA:MP si din cauza asta majoritatea culoriilor arata ceva genul asta:
      0xFFC266AA
      M-am gandit ca un destept ce sunt sa pun culoare ROSIE (#FF0000) si sa fac:
      #define RED 0xFFFF0000
      Bineinteles ca e munca Wreepareasca si imi da culoare alba. Din ce cauza? Ce convertor exista sa fac asemenea culori?
    • By Tefyuu
      Cum pot scoate quest ul din gamemode ul lui hpq123 ? am vazut ca nu e ca la celelante gamemodeuri e altcumva
    • By salexm93
      Salut ,pot adauga cod la apelarea functiilor native ? De ex la CreatePickup am nevoie sa salvez date pe care sa le accesez la OnPlayerPickUpPickup(playerid, pickupid)
    • By Tefyuu
      Salut , in gamemode ul burned by waller , cum adaug pet in shop ? am incercat eu ceva dar nu a aparut si am zis sa va intreb
    • By music prodaction
      salut, cum as putea sa pun un chat tag la admini si la helperi
      EX: 
      (A) alin: salut - admin
      (h) alin: salut - helper
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.