Gates and vehicles
#1

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
Reply
#2

http://forum.sa-mp.com/index.php?top...7775#msg867775
Reply
#3

where i gotta write something to be reserved?
Reply
#4

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)