How to create a gate where only a person with a certain name can enter - 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)
+--- Thread: How to create a gate where only a person with a certain name can enter (
/showthread.php?tid=323182)
How to create a gate where only a person with a certain name can enter -
stormchaser206 - 04.03.2012
How can I create a gate where the gate opens only if the player has the name i put in the script?
Re: How to create a gate where only a person with a certain name can enter -
Snipa - 05.03.2012
Код:
CMD:gate(playerid, params[])
{
new name[24];
GetPlayerName(playerid, name, sizeof name);
if(strcmp(name, "nigga_please", true) == 0)
{
//code
}
return 1;
}
Re: How to create a gate where only a person with a certain name can enter -
stormchaser206 - 01.05.2012
I am actually changing the subject now...
How could you see if a player has a certain name (Original: How to create a gate where only a person with a certain name can enter)
Re: How to create a gate where only a person with a certain name can enter -
[ABK]Antonio - 01.05.2012
pawn Код:
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
if(!strcmp("GateOwner", Name, false))
{
//stuff in here if the players name is GateOwner
}
Re: How to create a gate where only a person with a certain name can enter -
stormchaser206 - 01.05.2012
Thanks. I'll try it.