SA-MP Forums Archive
[Ajuda] NPC Nгo Muda Skin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] NPC Nгo Muda Skin (/showthread.php?tid=597182)



NPC Nгo Muda Skin - XXXHackeRXXX - 27.12.2015

Galera Estou Com O Seguinte Problema,Estou Usando um Filterscript Da Internet E Ele Faz Bots No Jogo.
Eu Nгo Consigo Alterar A Skin Dos Bots Sempre Cai Na Skin Do CJ ( a 0),o bot Faz tudo que programei anda etc.. mas nгo muda a skin
Quote:

/* Filter Skripta napravljena 23.03.2013
Autor: StjepanS
Verzija: 1.0 */

#include <a_samp>

public OnFilterScriptInit()
{
print("\n-----------------------------------");
print(" NPC policijski botovi | StjepanS");
print("------------------------------------\n");
return 1;
}

public OnGameModeInit()
{
ConnectNPC("StjepanSBot","npcstjepans");
ConnectNPC("StjepanSBot1","npcstjepans1");
return 1;
}

public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) // Provjerava da li se spawnao NPC.
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname)); // Dobivanje imena NPCa
if(!strcmp(npcname, "StjepanSBot", true))
{
SetPlayerColor(playerid, 0xFFFFFFAA);// Stavlja bijelu boju NPCu.
SetPlayerSkin(playerid, 281);// Stavlja skin NPCu id 281
SetPlayerAttachedObject(playerid,0,19142,1,0.04930 0,0.035000,-0.003500,0.000000,0.000000,0.000000,1.100000,1.100 000,1.100000);// Postavlja NPCu objekt pancirke
}
if(!strcmp(npcname, "StjepanSBot1", true))
{
SetPlayerColor(playerid, 0xFFFFFFAA);// Stavlja bijelu boju NPCu.
SetPlayerSkin(playerid, 280);// Stavlja skin NPCu id 280
SetPlayerAttachedObject(playerid,0,19142,1,0.04930 0,0.035000,-0.003500,0.000000,0.000000,0.000000,1.100000,1.100 000,1.100000);// Postavlja NPCu objekt pancirke
}
}
return 1;
}