ocmd:freeze(playerid, params[])
{
new PlayerId;
if(!isPlayerAnAdmin(playerid,1))
{
SendClientMessage(playerid,ROT,"***********************.");
return 1;
}
if(sscanf(params, "u", PlayerId))
{
SendClientMessage(playerid,ROT, "***********************************");
return 1;
}
if(PlayerId == INVALID_PLAYER_ID)
{
SendClientMessage(playerid,ROT, "***********************************.");
return 1;
}
TogglePlayerControllable(PlayerId, 0);
new String[255];
format(String, sizeof(String), "*******************************************: %s (%d).", Player[playerid][Name], playerid);
SendClientMessage(PlayerId,ROT, String);
format(String, sizeof(String), "************: %s (%d) **************y.", Player[PlayerId][Name], PlayerId);
SendClientMessage(playerid,ROT, String);
return 1;
}
Probier mal so. Ist bisschen blöd, dass dus verschlüsselt hast, weil man dann net sieht, was überhaupt passieren soll :O