16.06.2012, 12:03
Alright I'm completely new to scripting and I would need some help.
I would like to make the X characters to be visable on the class selection.
I currently have two classes, cops and criminals.
You can switch between the two teams but you can't see the skins.
So example, how should I make this "script" fit into my "system".
My script:
I would like to make the X characters to be visable on the class selection.
I currently have two classes, cops and criminals.
You can switch between the two teams but you can't see the skins.
So example, how should I make this "script" fit into my "system".
PHP код:
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0/* The first classid is of the cops*/:
{
gTeam[playerid] = TEAM_COPS;
GameTextForPlayer(playerid, "~b~Cops", 1000, 3);
}
case 1/* The second classid is of the criminals*/:
{
gTeam[playerid] = TEAM_CRIMINALS;
GameTextForPlayer(playerid, "~r~Criminals", 1000, 3);
}
}
return 1;
}