SA-MP Forums Archive
[Kick by name?] Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Kick by name?] Help (/showthread.php?tid=113815)



[Kick by name?] Help - devteamsnDOTcom - 16.12.2009

Ok, I made some NPC's and have a command to enter them and to kick them. But, I want to set it to make each one come and leave, so can I make it so that it runs a check and if their name equals per say, 'HydraNPC' then to kick them?

Also, How do I change the skin of an npc?


Re: [Kick by name?] Help - marharth - 16.12.2009

Not sure about what the heck you mean in the first part of the post...
I saw kick lol so...
make sure you have "if(IsPlayerNPC(playerid)) return 1;" in the correct places

To set a NPC skin just use the function "SetPlayerSkin" wherever your NPCs are in your GM



Re: [Kick by name?] Help - DeathOnaStick - 16.12.2009

I think he means name ... to check the name, and kick if its HydraNPC, do this:
pawn Код:
if(strcmp("HydraNPC", *The string, you saved the name to*, true, 20)==0)Kick(playerid);
You wanted it like this?