press Y to talk with NPC
#1

DELETE
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
https://sampwiki.blast.hk/wiki/Keys
Reply
#3

Please write me a full code ? I need full code
Reply
#4

You're not going to learn anything by asking people to do the work for you..
Reply
#5

How to create NPC ? and create in FireScirft or in Gamemode?
Reply
#6

Please help me ( Add where ? Gamemode or FS
Reply
#7

Instead of NPC, you can also use CreateActor function.
https://sampwiki.blast.hk/wiki/CreateActor
Reply
#8

Press Y add in gamemode or FS actor?
Reply
#9

Please help mee
Reply
#10

PHP код:
//OnGameModeInit :
new OurActor CreateActor(SkinIDPosXPosYPosZfacingangle);
//OnPlayerKeyStateChange :
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if (
PRESSED(KEY_YES))
    {
        new 
Float:PosXACtorFloat:PosYACtorFloat:PosZACtor;
        
GetActorPos(OurActorPosXACtorPosYACtorPosZACtor);
        if(
IsPlayerInRangeOfPoint(playerid2.0PosXACtorPosYACtorPosZACtor))
        {
            
SendClientMessage(playerid, -1"Actor said: Hello!");
        }
    }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)