04.02.2010, 22:39
I tried lots of things but skin is still the same
Please help
Please help
Originally Posted by actiwe
if(!strcmp(npcname, "bot", true))
{ SetPlayerSkin(playerid, 250); } |
public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { SetPlayerSkin(playerid, 250); } }
Originally Posted by mansonh
I think you can do it like this:
Код:
public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { SetPlayerSkin(playerid, 250); } } |
Originally Posted by aNdReSkKkK
thats most likely cuz of the name, make sure the name is the same u wrote in the bot script!
|
public OnGameModeInit() { ConnectNPC("[NPC]Juan","FarmGuard");
public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) //Checks if player is NPC. { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); // if(!strcmp(npcname, "[NPC]Juan", true)) / { GivePlayerWeapon(playerid,32,500); // M4 SetPlayerSkin(playerid,30); // Skin Latino PlayerInfo[playerid][team] = CIVILIAN; } return 1; } // end of NPC Check // then the rest of player spawn thing for regular players