08.07.2015, 03:49
It`s possible to put guns to this NPC`s? If yes, how?
public OnPlayerSpawn(playerid){
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname)); // Getting the player's name.
if(!strcmp(pname, "botnamehere")){ // Compare the player's name with the name you specify
GivePlayerWeapon(playerid, 31, 5000); // Give the bot a M4 with 5000 ammo.
}
return 1;
}