29.10.2014, 19:25
(
Последний раз редактировалось GBLTeam; 30.10.2014 в 10:52.
)
I was thinking the problem its somewhere here:
But the problem its not here i tried to change MAX_PLAYER_NAME with MAX_PLAYERS.
pawn Код:
if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
if(!strcmp(npcname, "GOD", true)) //Checking if the NPC's name is GOD
{ //Putting the NPC into the vehicle we created for it.
return 1;
}
return 1;
}