PDA

View Full Version : Add text on a skin selection?


JoshP
12/06/2013, 10:08 PM
How would I go about doing this? ??? like "cops" when cop skins show

AddPlayerClass(21,1268.7476,-900.2996,42.8828,173.2845,0,0,0,0,0,0); // blahblah
AddPlayerClass(22,1268.7476,-900.2996,42.8828,173.2845,0,0,0,0,0,0); // blahblaehfsdhsd
return 1;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
if(classid == 0)
{

SetPlayerPos(playerid,1268.7476,-900.2996,42.8828);
SetPlayerCameraPos(playerid,1268.6455,-904.1758,42.8828);
SetPlayerFacingAngle(playerid,187.4978);
SetPlayerCameraLookAt(playerid,1268.7476,-900.2996,42.882);
}
if(classid == 1)
{
SetPlayerPos(playerid,1268.7476,-900.2996,42.8828);
SetPlayerCameraPos(playerid,1268.6455,-904.1758,42.8828);
SetPlayerFacingAngle(playerid,187.4978);
SetPlayerCameraLookAt(playerid,1268.7476,-900.2996,42.882);
}

JoshP
12/06/2013, 10:30 PM
solved

if(classid == 0) GameTextForPlayer(playerid,"~b~ur shit",2000,5);

Pillhead2007
12/06/2013, 10:36 PM
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1960.9506, 1343.3920, 15.3746);
SetPlayerFacingAngle(playerid, 89.1425);
SetPlayerCameraPos(playerid, 1956.9000, 1343.0187, 15.3746);
SetPlayerCameraLookAt(playerid, 1960.9506, 1343.3920, 15.3746);
TogglePlayerControllable(playerid, 1);
SetPlayerTeamFromClass(playerid,classid);
switch(classid)
{
case 0,1,2,3,4,5,6,7,8,9:
{
GameTextForPlayer(playerid, "~g~Grove", 230, 6);
}
case 10,11,12:
{
GameTextForPlayer(playerid, "~p~Ballas", 230, 6);
}
case 13,14,15,16:
{
GameTextForPlayer(playerid, "~b~Bikers", 230, 6);
}
case 17,18,19,20:
{
GameTextForPlayer(playerid, "~r~Da Nang Gang", 230, 6);
}
case 21,22,23:
{
GameTextForPlayer(playerid, "~y~Los Santos Vagos", 230, 6);
}
case 24,25,26:
{
GameTextForPlayer(playerid, "~g~San Fierro Rifa", 230, 6);
}
case 27,28,29:
{
GameTextForPlayer(playerid, "~p~Triad's", 230, 6);
}
case 30,31,32,33:
{
GameTextForPlayer(playerid, "~b~The ~n~ ~b~ Italian Mafia", 230, 6);
}
case 34,35,36,37:
{
GameTextForPlayer(playerid, "~r~The ~n~ ~r~ Russian Mafia", 230, 6);
}
case 38,39,40:
{
GameTextForPlayer(playerid, "~y~Varios Los Aztecas", 230, 6);
}
case 41:
{
GameTextForPlayer(playerid, "~g~Army Sgt Major~n~~w~Delta Force Squad", 230, 6);
}
case 42:
{
GameTextForPlayer(playerid, "~p~C.I.A~n~~w~Central Intelligency Agency", 230, 6);
}
case 43:
{
GameTextForPlayer(playerid, "~b~F.B.I~n~~w~Federal Bureau Investigation", 230, 6);
}
case 44,45:
{
GameTextForPlayer(playerid, "~r~M.I.B~n~~w~Men In Black Agency", 230, 6);
}
case 46,47,48,49,50,51,52,53,54:
{
GameTextForPlayer(playerid, "~y~Police~n~~w~Officers", 230, 6);
}
case 55:
{
GameTextForPlayer(playerid, "~g~S.W.A.T~n~~w~Special Weapon's And Tactics", 230, 6);
}
case 56:
{
GameTextForPlayer(playerid, "~w~Los Santos~n~~r~Fire Department", 230, 6);
}
case 57:
{
GameTextForPlayer(playerid, "~w~Las Venturas~n~~r~Fire Department", 230, 6);
}
case 58:
{
GameTextForPlayer(playerid, "~w~San Fierro~n~~r~Fire Department", 230, 6);
}
case 59:
{
GameTextForPlayer(playerid, "~w~Los Santos~n~~r~Emergency Services~n~~r~Paramedic", 230, 6);
}
case 60:
{
GameTextForPlayer(playerid, "~w~Las Venturas~n~~r~Emergency Services~n~~r~Paramedic", 230, 6);
}
case 61:
{
GameTextForPlayer(playerid, "~w~San Fierro~n~~r~Emergency Services~n~~r~Paramedic", 230, 6);
}
case 62,63:
{
GameTextForPlayer(playerid, "~p~Bouncer's", 230, 6);
}
case 64,65,66:
{
GameTextForPlayer(playerid, "~b~Security Guards", 230, 6);
}
case 67,68:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Airport Workers", 230, 6);
}
case 69:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Ammu-Nation Worker", 230, 6);
}
case 70,71,72:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Barbers", 230, 6);
}
case 73:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Boat Worker", 230, 6);
}
case 74,75,76,77,78,79:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Buisness", 230, 6);
}
case 80:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~BurgerShot Worker", 230, 6);
}
case 81,82,83,84:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Casino Worker", 230, 6);
}
case 85:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Clown", 230, 6);
}
case 86,87:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Clothes Shop Assistants", 230, 6);
}
case 88:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Clukin' Bell Worker", 230, 6);
}
case 89,90,91:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Construction Site Workers", 230, 6);
}
case 92:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~DJ", 230, 6);
}
case 93:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Director", 230, 6);
}
case 94,95,96,97,98,99,100,101:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Drug Dealers", 230, 6);
}
case 102:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Gardener", 230, 6);
}
case 103,104:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Hot Dog / Noodle Vender", 230, 6);
}
case 105,106,107:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Hotel Staff", 230, 6);
}
case 108:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Janitor", 230, 6);
}
case 109,110:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Karate Teachers", 230, 6);
}
case 111:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Mechanic", 230, 6);
}
case 112:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Office Worker", 230, 6);
}
case 113,114:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Pool Bar Players", 230, 6);
}
case 115:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Priest", 230, 6);
}
case 116:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Professor", 230, 6);
}
case 117,118,119:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Sectretary", 230, 6);
}
case 120:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Tatoo Artist", 230, 6);
}
case 121,122,123,124,125,126,127,128,129:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Bus/Limo/Taxi's/Tram Drivers", 230, 6);
}
case 130,131:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Well Stacked Pizza Workers", 230, 6);
}
case 132,133:
{
GameTextForPlayer(playerid, "~r~Profession~n~~w~Valets", 230, 6);
}
case 134,135,136,137,138,139,140,141,142,143,144:
{
GameTextForPlayer(playerid, "~y~Citizens~n~~w~Beach Visitors", 230, 6);
}
case 145,146,147,148,149,150,151,152,153,154,155,156,15 7,158,159,160,161,162,163,164,165,166,167:
{
GameTextForPlayer(playerid, "~y~Citizens~n~~w~Farmers", 230, 6);
}
case 168:
{
GameTextForPlayer(playerid, "~y~Citizens~n~~w~BMX", 230, 6);
}
case 169,170:
{
GameTextForPlayer(playerid, "~y~Citizens~n~~w~Boxer's", 230, 6);
}
case 171,172,173,174:
{
GameTextForPlayer(playerid, "~y~Citizens~n~~w~Golfer's", 230, 6);
}
case 175,176:
{
GameTextForPlayer(playerid, "~y~Citizens~n~~w~Jogger's", 230, 6);
}
case 177:
{
GameTextForPlayer(playerid, "~y~Citizens~n~~w~Moutain Climber", 230, 6);
}
case 178,179:
{
GameTextForPlayer(playerid, "~y~Citizens~n~~w~Moutain Biker", 230, 6);
}
case 180,181:
{
GameTextForPlayer(playerid, "~y~Citizens~n~~w~Skater's", 230, 6);
}
case 182,183,184,185,186,187,188,189,190,191:
{
GameTextForPlayer(playerid, "~g~Sex Slaves~n~~w~Prostitues", 230, 6);
}
case 192,193,194,195,196:
{
GameTextForPlayer(playerid, "~g~Sex Slaves~n~~w~Stripper's", 230, 6);
}
case 197:
{
GameTextForPlayer(playerid, "~g~Sex Slaves~n~~w~Whore's", 230, 6);
}
}
return 1;
}
SetPlayerTeamFromClass(playerid, classid)
{
if(classid == 46 || classid == 47 || classid == 48 || classid == 49 || classid == 50 || classid == 51 || classid == 52 || classid == 53 || classid == 54)
{
PlayerInfo[playerid][pTeam] = TEAM_COP;
PlayerInfo[playerid][pCopRadio] = 1;
}
if(classid == 55)
{
PlayerInfo[playerid][pTeam] = TEAM_SWAT;
}
if(classid == 43)
{
PlayerInfo[playerid][pTeam] = TEAM_FBI;
}
if(classid == 41)
{
PlayerInfo[playerid][pTeam] = TEAM_ARMY;
}
if(classid == 42)
{
PlayerInfo[playerid][pTeam] = TEAM_CIA;
}
if(classid == 59 || classid == 60 || classid == 61)
{
PlayerInfo[playerid][pTeam] = TEAM_MEDIC;
}
return 1;
}