new name[255]; GetPlayerName(playerid, name, 255);
You must learn about variables. The player's name can be maximum 24 characters long, so you only need
pawn Код:
new name[24];
And in 0.3x, freezing the player with TogglePlayerControllable will not make him invulnerable. Anyway, if you are a begginer, it's good. But read as many tutorials as you can.