Okay hab das jetzt eingefügt hier:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0,1,2:klasse[playerid]=1; //Ballas
case 3,4,5:klasse[playerid]=2; //GSF
case 6,7,8:klasse[playerid]=3; // LSV
case 9,10,11:klasse[playerid]=4; //Russische Mafia
case 12,13,14:klasse[playerid]=5; //Aztecas
}
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;
}
Nur ich weiss nicht wie ich das in ocmd:f einfügen soll:
ocmd:f(playerid,params[])
{
if(sscanf(params,"s",stringbert2))return SendClientMessage(playerid,HELLROT,"AmdCmd: Benutze /f [Text]");
format(stringbert,sizeof(stringbert),"(( Team Chat: {CCB596}%s{FFFFFF}: %s ))",SpielerName(playerid),stringbert2);
for(new i=0;i<MAX_PLAYERS;i++)
{
if(!IsPlayerConnected(i))continue;
if(klasse[playerid]!=klasse[i])continue;
SendClientMessage(i,WEISS,stringbert);
}
return 1;
}