03.10.2009, 19:28
Should this work?:
Код:
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, "rhinobot", true)) //Checking if the NPC's name is MyFirstNPC { PutPlayerInVehicle(playerid, tank, 0); //Putting the NPC into the vehicle we created for it. SetPlayerChatBubble(playerid, "Im a tank RAWR!", yellow, 40.0, -1); } return 1; }