Class name
#1

on these skins:29, 0, 299, 86. 298 i want the class to be called Trucker
on skin 61 i want it to say Pilot
on these skins:280, 285, 286, 287 i want it to say Police
on these skin 50 i want it to say Assistance
Thanx so much for the Help if u Helped me
Reply
#2

You want it to send a message if you select that skin?
Reply
#3

You can use this function https://sampwiki.blast.hk/wiki/OnPlayerRequestClass
Reply
#4

Add this under public OnPlayerSpawn(playerid)

Код:
if (GetPlayerSkin(playerid == 0+29+299+86+298))
	SendClientMessage(playerid, COLOR_RED, "You are a Trucker!");
	
	if (GetPlayerSkin(playerid == 61))
	SendClientMessage(playerid, COLOR_RED, "You are a Pilot!");
	
	if (GetPlayerSkin(playerid == 280+285+286+287))
	SendClientMessage(playerid, COLOR_RED, "You are a Policeman!");
	
	if (GetPlayerSkin(playerid == 50))
	SendClientMessage(playerid, COLOR_RED, "You are an Assistant!");
	return 1;
}
Remember to change the color you want the text to be shown in as you have defined.
Hope I helped you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)