26.03.2012, 19:41
Bueno miren este es mi nuevo problema ._. no cargan los botz miren todo lo que tengo
en
onplayerspawn
en onplayerconnect
en onplayerspawn
en onplayerstatechange
en ongamemodeinit
y esto
y esto
que podria estar mal? porfa necesito que em ayuden.
en
onplayerspawn
pawn Код:
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
RequestNPCLoad(playerid,npcname);
return 1;
}
pawn Код:
if(IsPlayerNPC(playerid))
{
ShowPlayerMarkers(0);
SetPlayerColor(playerid, COLOR_GRAD2);
SpawnPlayer(playerid);
return 1;
}
pawn Код:
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
RequestNPCLoad(playerid,npcname);
return 1;
}
pawn Код:
if(IsPlayerNPC(playerid)) return 1;
pawn Код:
RequestNPCJoin();
pawn Код:
RequestNPCLoad(playerid,npcname[])
{
if(IsPlayerNPC(playerid))
{
if(!strcmp(npcname, "Beautiful_Jou", true)) SetPlayerSkin(playerid, 28);
if(!strcmp(npcname, "Homero_Rubio", true)) SetPlayerInterior(playerid, 7), SetPlayerSkin(playerid, 179);
if(!strcmp(npcname, "Agente_Richard", true)) SetPlayerInterior(playerid, 10), SetPlayerSkin(playerid, 163), GivePlayerWeaponEx(playerid, 31, 100);
if(!strcmp(npcname, "Jack_Baylord", true)) SetPlayerInterior(playerid, 5), SetPlayerSkin(playerid, 96), SetPlayerAttachedObject(playerid, 0, 2915, 6, 0.021150, 0.039759, -0.017081, 77.256294, 294.946319, 75.550193, 1.000000, 1.000000, 1.000000 );
if(!strcmp(npcname, "Irina_Shayk", true)) SetPlayerInterior(playerid, 3), SetPlayerSkin(playerid, 152);
if(!strcmp(npcname, "Sara_Carbonero", true)) SetPlayerInterior(playerid, 3), SetPlayerSkin(playerid, 246);
if(!strcmp(npcname, "Megan_Fox", true)) SetPlayerInterior(playerid, 3), SetPlayerSkin(playerid, 178);
if(!strcmp(npcname, "Madre", true)) SetPlayerSkin(playerid, 87);
if(!strcmp(npcname, "Doctor", true)) SetPlayerSkin(playerid, 70);
if(!strcmp(npcname, "Padre", true)) SetPlayerSkin(playerid, 59);
}
return 1;
}
pawn Код:
public RequestNPCJoin()
{
npctoggle = 1;
ConnectNPC("Jack_Baylord","Gym_Trainer");
ConnectNPC("Beautiful_Jou","Black_Market");
ConnectNPC("Doctor_Marrero", "Medic_SanFierro");
ConnectNPC("Homero_Rubio","Ammunation_Shop");
ConnectNPC("Agente_Richard","U7_Guard");
ConnectNPC("Irina_Shayk", "Alhambra_Strip1");
ConnectNPC("Sara_Carbonero", "Alhambra_Strip2");
ConnectNPC("Megan_Fox", "Alhambra_Strip3");
ConnectNPC("Doctor", "Medic");
ConnectNPC("Madre", "Mother");
ConnectNPC("Padre", "Father");
}