07.07.2016, 14:36
Code:
public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { new npc[MAX_PLAYER_NAME]; GetPlayerName(playerid, npc, sizeof(npc)); if(!strcmp(npcname, "Attack_NPC", true)) { SetTimer("AttackNPC", 5000, 0); } return 1; } return 1; }
But, I don't really understand what you want to do can you explain please?