#1

Hi i have question, i need return 1; after each or just the end


pawn Код:
if(IsPlayerNPC(playerid))
    {
        new NPCName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, NPCName, sizeof NPCName);
        if(!strcmp(NPCName, "Dragan", true))
        {
            PutPlayerInVehicle(playerid, Dragancheetah, 0);
        }
        if(!strcmp(NPCName, "Kyrko", true))
        {
            GivePlayerWeapon(playerid, 38, 5000);
            SetPlayerSkin(playerid, 32);
        }
        if(!strcmp(NPCName, "Petrovich", true))
        {
            SetPlayerSkin(playerid, 109);
        }
        return 1;
    }
Reply
#2

Just the end would be enough
Reply
#3

Just at end.

Edit:- You beat me! :@ ^^^
Reply
#4

Ok thxx but the Kyrko giveplayerweapon dont work, why
Reply
#5

Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
Ok thxx but the Kyrko giveplayerweapon dont work, why
Sorry, i didn't get, Show us the codes.
Reply
#6

pawn Код:
if(!strcmp(NPCName, "Kyrko", true))
        {
            GivePlayerWeapon(playerid, 38, 5000); // not work
            SetPlayerSkin(playerid, 32);
        }
Reply
#7

Bump
Reply
#8

GivePlayerWeapon doesn't work with NPC's.

You must record the NPC file equipping the weapon you want.
Reply
#9

I done that but it dont work
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)