Jump to content
  • 0

Problema la SKIN


norton.

Question

6 answers to this question

Recommended Posts

Uite si eu am avut problema asta ... dar eu folosesc doar pentru admini/useri normali ... o adaugi la OnPlayerLogin

if(PlayerData[playerid][pLeader] == 0 && PlayerData[playerid][pAdmin] >= 1)
		{
		    new query[255];
			PlayerData[playerid][pChar] = 217;
			SetPlayerSkin(playerid, 217);
			format(query, sizeof(query), "UPDATE players SET Chara='%s' WHERE id=%d", PlayerData[playerid][pChar], PlayerData[playerid][pSQLID]);
			mysql_query(query);
		}
		else if(PlayerData[playerid][pLeader] == 0 && PlayerData[playerid][pAdmin] < 1)
		{
		    new query[255];
	    	PlayerData[playerid][pChar] = 289;
			SetPlayerSkin(playerid, 289);
			format(query, sizeof(query), "UPDATE players SET Chara='%s' WHERE id=%d", PlayerData[playerid][pChar], PlayerData[playerid][pSQLID]);
			mysql_query(query);
		}

A fost usor sa te iubim ...,

      Acum e imposibil sa te uitam !

Link to comment
Share on other sites

Iti raspund eu la intrebare pentru ca am aceeasi problema:

Deci, se salveaza skinul chiar daca dai /skin /changeskin /setskin etc. Dar "uneori" cand iesi de pe server si intrii la loc iti da skinul acesta: http://wiki.sa-mp.com/wiki/Image:Skin_7.png [sKIN ID 7]

Iar la public OnPlayerSpawn exista asta: [pawn]SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);[/pawn]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.