SA-MP Forums Archive
Rank with Skin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Rank with Skin (/showthread.php?tid=77249)



Rank with Skin - arachimi - 09.05.2009

I use godfather gamemode.

When I /giverank I want to change skin of player.

What should I do?

Is this line?
Код:
	if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
		else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Taxi Rookie"; }
		else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Cabbie"; }
		else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Dispatcher"; }
		else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Shift Supervisor"; }
		else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Taxi Company Owner"; }
		else { rtext = "Trainee"; }



Re: Rank with Skin - Weirdosport - 09.05.2009

You should ask this in the godfather thread. And no, I don't think that's the line.


Re: Rank with Skin - Andom - 09.05.2009

Код:
	if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; SetPlayerSkin(targetid, 99); }
		else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Taxi Rookie"; SetPlayerSkin(targetid, 5); }
		else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Cabbie"; SetPlayerSkin(targetid, 7); }
		else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Dispatcher"; SetPlayerSkin(targetid, 3); }
		else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Shift Supervisor"; SetPlayerSkin(targetid, 2); }
		else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Taxi Company Owner"; SetPlayerSkin(targetid, 57); }
		else { rtext = "Trainee"; SetPlayerSkin(targetid, 155); }
You have to change the skin id's by yourself


Re: Rank with Skin - arachimi - 09.05.2009

Quote:
Originally Posted by Andom
Код:
	if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; SetPlayerSkin(targetid, 99); }
		else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Taxi Rookie"; SetPlayerSkin(targetid, 5); }
		else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Cabbie"; SetPlayerSkin(targetid, 7); }
		else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Dispatcher"; SetPlayerSkin(targetid, 3); }
		else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Shift Supervisor"; SetPlayerSkin(targetid, 2); }
		else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Taxi Company Owner"; SetPlayerSkin(targetid, 57); }
		else { rtext = "Trainee"; SetPlayerSkin(targetid, 155); }
You have to change the skin id's by yourself
Thx but it doesn't work.


Re: Rank with Skin - Danut - 09.05.2009

lol , that's a bollshit ...

That with rank it's from a command , like /d(epartments)