Ich hab das So gemacht aber es geht immer noch nicht .......
if(strcmp(cmd, "/polizei", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new para1;
para1 = ReturnUser(tmp);
if(strcmp(tmp,"0",true) == 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(strcmp(tmp,"1",true) == 0)
{
PlayerInfo[para1][pChar] = 283;
PlayerInfo[para1][pPolizei] = 1;
}
return 1;
}
}