Hallo,meine Abfragen funktionieren nicht... z.B Spawne ich als Präsident da wo Zivis spawnen sollten
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))return 1;
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawHideForAll(Textdraw2);
TextDrawHideForAll(Textdraw3);
TextDrawHideForAll(Textdraw4);
TextDrawHideForAll(Textdraw5);
TextDrawHideForAll(Textdraw6);
TextDrawHideForAll(Textdraw7);
StopAudioStreamForPlayer(playerid);
new skin = PlayerInfo[playerid][pSkin];
SetPlayerSkin(playerid, skin);
SetPlayerPos(playerid, 1754.3501,-1894.1187,13.5570);
if(!Secret(playerid))
{
SetPlayerPos(playerid, 1124.1204,-2036.7813,69.8852);
}
return 1;
}
Meine Abfragen:
stock istAdmin1(playerid)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
return 1;
return 1;
}
stock istBWN(playerid)
{
if(PlayerInfo[playerid][pMember] ==5 || PlayerInfo[playerid][pLeader] ==5)
return 1;
return 1;
}
stock SF8Member(playerid)
{
if(PlayerInfo[playerid][pMember] ==1 || PlayerInfo[playerid][pLeader] ==1 || PlayerInfo[playerid][pMember] ==4 || PlayerInfo[playerid][pLeader] ==4) return 1;
return 0;
}
stock Cop(playerid)
{
if(PlayerInfo[playerid][pMember] ==1 || PlayerInfo[playerid][pLeader] ==1 || PlayerInfo[playerid][pMember] ==2 || PlayerInfo[playerid][pLeader] ==2 || PlayerInfo[playerid][pMember] ==3 || PlayerInfo[playerid][pLeader] ==3 || PlayerInfo[playerid][pMember] ==4 || PlayerInfo[playerid][pLeader] ==4) return 1;
return 0;
}
stock Zivi(playerid)
{
if(PlayerInfo[playerid][pMember] ==0 || PlayerInfo[playerid][pLeader] ==0) return 1;
return 0;
}
stock Secret(playerid)
{
if(PlayerInfo[playerid][pMember] ==4 || PlayerInfo[playerid][pLeader] ==4)
return 1;
return 1;
}
Oder Jeder kann das hier machen:
ocmd:n(playerid,params[])
{
new string[128], text;
if(!istBWN(playerid))return SendClientMessage(playerid,ROT,"Sie sind kein Reporter");
if(sscanf(params,"s",text))return SendClientMessage(playerid,ROT,"/n [NACHRICHT]");
format(string, sizeof(string), " Reporter %s: %s ", SpielerName(playerid), text);
SendClientMessageToAll(ORANGE, string);
return 1;
}
Obwhl man Kein BWN (BlackWaterNews also Reporter) ist...
Danke für ALLE die Helfen