Hey Allo leute mein problem ist das wen ich als admin eine freezen will und die id eingebe wir immer ein und der selbe spieler gefreezt Hier mein code
CMD:freeze(playerid, params[])
{
new
id;
if (sscanf(params, "u", id)) SendClientMessage(playerid, COLOR_GREEN, "Usage: \"/freeze <playerid or name>\"");
else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_GREEN, "Player not found");
if(PlayerInfo[playerid][pAdminLevel] < 1){SendClientMessage(playerid, COLOR_LIGHTRED, "You Are Not Admin level required to use this cmd"); return 1;}
else
{
TogglePlayerControllable(id,0);
SendClientMessage(id,TEAM_BLUE_COLOR, "Admin has Frozen you");
AdminMessage(id,TEAM_BLUE_COLOR, "You have frozen a player successfully");
}
return 1;
}
CMD:unfreeze(playerid, params[])
{
new
id;
if (sscanf(params, "u", id)) SendClientMessage(playerid, COLOR_GREEN, "Usage: \"/unfreeze <playerid or name>\"");
else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_GREEN, "Player not found");
if(PlayerInfo[playerid][pAdminLevel] < 1){SendClientMessage(playerid, COLOR_LIGHTRED, "You Are Not Admin level required to use this cmd"); return 1;}
else
{
TogglePlayerControllable(id,1);
SendClientMessage(id,TEAM_BLUE_COLOR, "Admin has UnFrozen you");
SendClientMessage(id,TEAM_BLUE_COLOR, "You have Unfrozen a player successfully");
}
return 1;
}