Problem With Npc's.
#1

Why, with this script, change only botweap skin?
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(IsPlayerNPC(playerid))
    {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "botbus", true))
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0);
    }
    return 1;
    }
    PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
    if(IsPlayerNPC(playerid))
    {
    new npc_name[24];
    GetPlayerName(playerid,npc_name,sizeof(npc_name));
    if(!strcmp(npc_name,"botweap",false))
    {
    SetPlayerSkin(playerid, 23);
    }
    return 1;
    }
    if(IsPlayerNPC(playerid))
    {
    new npc_name[24];
    GetPlayerName(playerid,npc_name,sizeof(npc_name));
    if(!strcmp(npc_name,"botweapon",false))
    {
    SetPlayerSkin(playerid, 30);
    }
    return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Problem With Npc's. - by Manuwar - 02.04.2011, 14:26
Re: Problem With Npc's. - by -Rebel Son- - 02.04.2011, 15:02

Forum Jump:


Users browsing this thread: 1 Guest(s)