Gates and vehicles
#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


Messages In This Thread
Gates and vehicles - by toshkaz - 27.01.2010, 11:11
Re: Gates and vehicles - by wangdata - 27.01.2010, 11:21
Re: Gates and vehicles - by toshkaz - 29.01.2010, 15:17
Re: Gates and vehicles - by LuxurioN™ - 29.01.2010, 15:34

Forum Jump:


Users browsing this thread: 2 Guest(s)