SA-MP Forums Archive
Hey, How to make? - 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: Hey, How to make? (/showthread.php?tid=186284)



Hey, How to make? - odlemoreten - 28.10.2010

Hey , Im just woundering how to make a gate to just a player, Like Example "pMember" thats to a Faction is there any
pName?

Thanks


Re: Hey, How to make? - iJumbo - 28.10.2010

i dont get u what u mean?


Re: Hey, How to make? - odlemoreten - 28.10.2010

Like, Just a gate that can be opened buy 1 person if James_Carter is the one that can open How can i do that


Re: Hey, How to make? - Kyle - 28.10.2010

CHECKONTHECOMMAND

new pName[24];
GetPlayerName(playerid,pName,24);

if(!strcmp(pName, "James_Carter", true) == 0)) return dontopen gate


Re: Hey, How to make? - Steven82 - 28.10.2010

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
CHECKONTHECOMMAND

new pName[24];
GetPlayerName(playerid,pName,24);

if(!strcmp(pName, "James_Carter", true) == 0)) return dontopen gate
strcmp, sucks know. It's all i used to use, now i started to use dcmd, much better


Re: Hey, How to make? - Sascha - 28.10.2010

steven... dcmd is to make commands... he isn't using strcmp commands in there.. he is comparing 2 strings