if(strcmp(cmd, "/polizei", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "BENUTZUNG: /polizei 1 für Polizist oder 0 für nicht Polizist");
return 1;
}
new level;
new para1;
para1 = ReturnUser(tmp);
level = strval(tmp);
if(level > 1 || level < 0) { SendClientMessage(playerid,
COLOR_GREY, " Geh nicht tiefer als Nummer 0, oder höher als Nummer 1!");
return 1; }
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
if(level == 0)
{
gTeam[para1] = 3;
PlayerInfo[para1][pPolizei] = 0;
PlayerInfo[para1][pChar] = 0;
new rand = random(sizeof(CIV));
SetSpawnInfo(para1, gTeam[para1], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[para1][pModel] = CIV[rand];
MedicBill[para1] = 0;
SpawnPlayer(para1);
SendClientMessage(playerid, COLOR_GRAD1, "Du bist nun kein Polizist");
SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
}
else if(level == 1) { PlayerInfo[para1][pChar] = 283; PlayerInfo[para1][pPolizei] = 1; } // LOS SANTOS POLICE
SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " ** INFO:!");
}
}
return 1;
}
//e so vllt
if(strcmp(tmp,"0",true) == 0)
{
}
else if(strcmp(tmp,"1",true) == 0)
{
}