29.07.2009, 10:37
Then it should look like this:
pawn Код:
#include <a_samp>
public OnPlayerRequestClass(playerid, classid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(classid == 10 && strcmp(name, "[TcB]EmuK", false))
{
GameTextForPlayer(playerid, "~w~SKIN RESERVED", 3000, 3);
return 1;
}
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
new skin;
new name[MAX_PLAYER_NAME];
skin = GetPlayerSkin(playerid);
GetPlayerName(playerid, name, sizeof(name));
if(skin == 10 && strcmp(name, "[TcB]EmuK", false))
{
GameTextForPlayer(playerid, "~w~SKIN RESERVED", 3000, 3);
return 1;
}
return 1;
}