12.07.2009, 16:52
hey, I want to have the GameText show up when a player views a certain skin. This is what I have so far
It is the same is how I saw it in other scripts BUT "Admin Only Skin" shows up on all of my 14 skins. If I am correct in thinking that the class id is what number id it is (starting with 0) why does this happen? Civilian never shows up.
Thanks In Advance
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,1.7356,29.3041,1199.5938);
SetPlayerFacingAngle(playerid,1.0432);
SetPlayerCameraPos(playerid, 1.7903,33.1503,1200.5938);
SetPlayerCameraLookAt(playerid, 1.7356,29.3041,1199.5938);
if(classid==12||13)
{
GameTextForPlayer(playerid,"~b~Admin Only Skin",2000,3);
}
else
{
GameTextForPlayer(playerid,"~w~Civilian",2000,3);
}
return 1;
}
Thanks In Advance