Gates and vehicles - 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: Gates and vehicles (
/showthread.php?tid=123765)
Gates and vehicles -
toshkaz - 27.01.2010
Hi all can someone tell me how to make the gate which i make to move from program to be reserved for
some players,not all,just only which i want?
the same with the cars?
can you give me program
or code but to tell me what to edit
very very very please
and please,if there is a good scripter or mapper,or one person who understand from the two kinds things find me on skype: toshko922
Re: Gates and vehicles -
wangdata - 27.01.2010
http://forum.sa-mp.com/index.php?top...7775#msg867775
Re: Gates and vehicles -
toshkaz - 29.01.2010
where i gotta write something to be reserved?
Re: Gates and vehicles -
LuxurioN™ - 29.01.2010
Try this (Not Tested):
pawn Код:
if(!strcmp(cmdtext,"/opengate",true))
{
new PlayerName[24];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(strcmp(PlayerName,"PlayerNameHERE",true))
{
MoveObject(GATE, X,Y,Z,Speed);
}
else SendPlayerFormattedText(playerid,"You not is PLAYERNAME",0);
return 1;
}
if(!strcmp(cmdtext,"/close",true))
{
new PlayerName[24];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(strcmp(PlayerName,"PlayerNameHERE",true))
{
MoveObject(GATE, X,Y,Z,Speed);
}
else SendPlayerFormattedText(playerid,"You not is PLAYERNAME",0);
return 1;
}