Posts: 482
Threads: 84
Joined: Nov 2010
Reputation:
0
why the hell are u doing this al the time?
if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
maybe its because your returning one in the first isplayernpc check so it stops the function before the others