08.06.2011, 01:06
(
Последний раз редактировалось Tee; 08.06.2011 в 03:21.
)
pawn Код:
public OnPlayerSpawn(playerid)
{
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, "MyFirstNPC", true)) //Checking if the NPC's name is MyFirstNPC
{
SetPlayerSkin(playerid,put_the_skin_ID_here);
}
return 1;
}
//Other stuff for normal players goes here!
return 1;
}
pawn Код:
public OnPlayerSpawn(playerid)
{
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, "crusing", true)) //Checking if the NPC's name is MyFirstNPC
{
SetPlayerSkin(playerid,0);//CJ skin
}
return 1;
}
//Other stuff for normal players goes here!
return 1;
}