07.02.2012, 14:09
Criei 2 NPc's sу que eles nгo dгo spawn.
alguem me ajuda? '-'
Obs:Criei esse npc na cagada pq eu so um nb!
alguem me ajuda? '-'
Obs:Criei esse npc na cagada pq eu so um nb!
pawn Код:
#include a_samp
public OnFilterScriptInit()
{
ConnectNPC("Mayara","puta");
ConnectNPC("Administrator","cafetao");
return 1;
}
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
return 1;
}
public OnPlayerRequestClass(playerid,classid)
{
if(IsPlayerNPC(playerid)) return 1;
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
if(IsPlayerNPC(playerid)) return 1;
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Mayara", true))
{
SetPlayerSkin(playerid, 211);
SetPlayerPos(playerid,1154.1437,-1769.2747,16.5938);
SetPlayerColor(playerid,0xFFFFFF00);
ApplyAnimation(playerid, "BAR","Barserve_loop", 4.0, 0, 1, 1, 1, 0, 1);
}
else if(!strcmp(npcname, "Administrator", true))
{
SetPlayerSkin(playerid, 217);
SetPlayerPos(playerid,1154.1437,-1769.2747,16.5938);
SetPlayerColor(playerid,0xFFFFFF00);
}
return 1;
}
return 1;
}
public OnPlayerUpdate(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
return 1;
}