Hallo COmmunity,
ich möchte das die Admins eine eigene Klasse haben.
D.h wenn es Ballas, Vagos etc gibt das auch ein Class für Admins gibt die nur Admins haben können.
Mein SKinwahl sieht so aus:
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 0 || classid == 1 || classid == 2)
{
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
GameTextForPlayer(playerid,"~p~Ballas", 3000, 6);
SetPlayerColor(playerid,PINK);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
SetPlayerMarkerForPlayer( 42, 1, 0xFF0000FF );
SetPVarInt(playerid,"SkinWahl",1);
}
if(classid == 3 || classid == 4 || classid == 5)
{
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
GameTextForPlayer(playerid,"~g~Grove Street Family", 3000, 6);
SetPlayerColor(playerid,GRUEN);
SetPVarInt(playerid,"SkinWahl",1);
}
if(classid == 6 || classid == 7 || classid == 8)
{
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
GameTextForPlayer(playerid,"~y~Los Santos Vagos", 3000, 6);
SetPlayerColor(playerid,GELB);
SetPVarInt(playerid,"SkinWahl",1);
}
if(classid == 9 || classid == 10 || classid == 11)
{
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
GameTextForPlayer(playerid,"~l~Die Russische Mafia", 3000, 6);
SetPlayerColor(playerid,GRAU);
SetPVarInt(playerid,"SkinWahl",1);
}
if(classid == 12 || classid == 13 || classid == 14)
{
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
GameTextForPlayer(playerid,"~b~Varios Los Aztecas", 3000, 6);
SetPlayerColor(playerid,HELLBLAU);
SetPVarInt(playerid,"SkinWahl",1);
}
return 1;
}
Brauche dringend Hilfe.