SA-MP Forums Archive
[HELP] Open gate with a name [SOLVED] - 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: [HELP] Open gate with a name [SOLVED] (/showthread.php?tid=71744)



[HELP] Open gate with a name [SOLVED] - RyDeR` - 03.04.2009

Hi,
I want to open a gate With my name not IfIsPlayerAdmin but with my name.
How Must that



Re: [HELP] Open gate with specialy name - HB - 03.04.2009

http://forum.sa-mp.com/index.php?topic=73987.0


Re: [HELP] Open gate with specialy name - RyDeR` - 03.04.2009

Quote:
Originally Posted by иєσz
Thanks i'll try it...

If anybody have something else post it please.
I don't understand INC's


Re: [HELP] Open gate with a name [not solved] - RyDeR` - 03.04.2009

Anybody


Re: [HELP] Open gate with a name [not solved] - Jefff - 03.04.2009

use strcmp :>


Re: [HELP] Open gate with a name [not solved] - RyDeR` - 03.04.2009

Quote:
Originally Posted by Jefff
use strcmp :>
OMG, How? I don't know how to make it that's it


Yayy 100


Re: [HELP] Open gate with a name [not solved] - RyDeR` - 03.04.2009

I Tried
if(!Name , ToD)
But it doesn't work


Re: [HELP] Open gate with a name [not solved] - Jefff - 03.04.2009

Код:
new name[24];
for(new i=0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInArea(i,...))
{
GetPlayerName(i,name,24);
if(!strcmp(name, "ToD", true)) {
MoveObject(...);
}}}}
??



Re: [HELP] Open gate with a name [not solved] - RyDeR` - 03.04.2009

Quote:
Originally Posted by Jefff
Код:
new name[24];
for(new i=0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInArea(i,...))
{
GetPlayerName(i,name,24);
if(!strcmp(name, "ToD", true)) {
MoveObject(...);
}}}}
??
Hmm thank you i'll try it


Re: [HELP] Open gate with a name [not solved] - RyDeR` - 03.04.2009

Thank you Jefff Love ya lol