22.11.2009, 10:40
Код:
stock IsBotName(playerid, Name[]) { new Bot[MAX_PLAYER_NAME]; GetPlayerName(playerid, Bot, sizeof(Bot)); if(!strcmp(Bot, Name, true)) return 1; return 0; }
Код:
public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { if(IsBotName(playerid, "Doctor")) { SetPlayerSkin(playerid, 70); } return 1; } return 1; }