Moin mal wieder kann mir jemand sagen was ich falsch mache?
Pawno compiled nicht mehr
Code
ocmd:aduty(playerid, params[])
{
if(isAdmin(playerid, 1))return SCM(playerid, COLOR_RED, MESSAGE_NOADMIN) && if(aduty[playerid]==false)
{
new string[128];
new Float:x, Float:y, Float:z;
new Text3D:label = Create3DTextLabel("Teammitglied im Dienst!", COLOR_RED, x,y,z, 40.0, 0, 0);
GetPlayerPos(playerid, x,y,z);
oldskin[playerid] = GetPlayerSkin(playerid);
SetPlayerHealth(playerid, 999999);
SetPlayerArmour(playerid, 999999);
SetPlayerColor(playerid, COLOR_RED);
SetPlayerSkin(playerid, 217);
format(string,sizeof(string),"Probe Supporter %s ist in den Dient gegangen! Er ist Rot markiert!", GetName(playerid));
SendClientMessageToAll(COLOR_GOLD,string);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
aduty[playerid] = true;
}
else if(isAdmin(playerid, 2))return SCM(playerid, COLOR_RED,MESSAGE_NOADMIN) && if(aduty[playerid]==false)
{
new string[128];
new Float:x, Float:y, Float:z;
new Text3D:label = Create3DTextLabel("Teammitglied im Dienst!", COLOR_RED, x,y,z, 40.0, 0, 0);
GetPlayerPos(playerid, x,y,z);
oldskin[playerid] = GetPlayerSkin(playerid);
SetPlayerHealth(playerid, 999999);
SetPlayerArmour(playerid, 999999);
SetPlayerColor(playerid, COLOR_RED);
SetPlayerSkin(playerid, 217);
format(string,sizeof(string),"Supporter %s ist in den Dient gegangen! Er ist Rot markiert!", GetName(playerid));
SendClientMessageToAll(COLOR_GOLD,string);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
aduty[playerid] = true;
}
if(isAdmin(playerid, 3))return SCM(playerid, COLOR_RED,MESSAGE_NOADMIN) && if(aduty[playerid]==false)
{
new string[128];
new Float:x, Float:y, Float:z;
new Text3D:label = Create3DTextLabel("Teammitglied im Dienst!", COLOR_RED, x,y,z, 40.0, 0, 0);
GetPlayerPos(playerid, x,y,z);
oldskin[playerid] = GetPlayerSkin(playerid);
SetPlayerHealth(playerid, 999999);
SetPlayerArmour(playerid, 999999);
SetPlayerColor(playerid, COLOR_RED);
SetPlayerSkin(playerid, 217);
format(string,sizeof(string),"Moderator %s ist in den Dient gegangen! Er ist Rot markiert!", GetName(playerid));
SendClientMessageToAll(COLOR_GOLD,string);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
aduty[playerid] = true;
}
if(isAdmin(playerid, 4))return SCM(playerid, COLOR_RED,MESSAGE_NOADMIN) && if(aduty[playerid]==false)
{
new string[128];
new Float:x, Float:y, Float:z;
new Text3D:label = Create3DTextLabel("Teammitglied im Dienst!", COLOR_RED, x,y,z, 40.0, 0, 0);
GetPlayerPos(playerid, x,y,z);
oldskin[playerid] = GetPlayerSkin(playerid);
SetPlayerHealth(playerid, 999999);
SetPlayerArmour(playerid, 999999);
SetPlayerColor(playerid, COLOR_RED);
SetPlayerSkin(playerid, 217);
format(string,sizeof(string),"Administrator %s ist in den Dient gegangen! Er ist Rot markiert!", GetName(playerid));
SendClientMessageToAll(COLOR_GOLD,string);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
aduty[playerid] = true;
}
if(isAdmin(playerid, 4))return SCM(playerid, COLOR_RED,MESSAGE_NOADMIN) && if(aduty[playerid]==false)
{
new string[128];
new Float:x, Float:y, Float:z;
new Text3D:label = Create3DTextLabel("Teammitglied im Dienst!", COLOR_RED, x,y,z, 40.0, 0, 0);
GetPlayerPos(playerid, x,y,z);
oldskin[playerid] = GetPlayerSkin(playerid);
SetPlayerHealth(playerid, 999999);
SetPlayerArmour(playerid, 999999);
SetPlayerColor(playerid, COLOR_RED);
SetPlayerSkin(playerid, 217);
format(string,sizeof(string),"Projektleiter %s ist in den Dient gegangen! Er ist Rot markiert!", GetName(playerid));
SendClientMessageToAll(COLOR_GOLD,string);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
aduty[playerid] = true;
}
else if(aduty[playerid]==true)
{
new string[128];
new Float:x, Float:y, Float:z;
new Text3D:label = Create3DTextLabel("Teammitglied im Dienst!", COLOR_RED, x,y,z, 40.0, 0, 0);
Delete3DTextLabel(label);
SetPlayerHealth(playerid, 100);
SetPlayerSkin(playerid, oldskin[playerid]);
format(string,sizeof(string),"Teammitglied %s hat den Dienst beendet!",GetName(playerid));
SendClientMessageToAll(COLOR_GOLD,string);
SetPlayerColor(playerid, COLOR_WHITE);
aduty[playerid]=false;
}
return 1;
}
Alles anzeigen