Command help! Easy for pro's!
#4

Код:
if (strcmp(cmdtext, "/GarageOpen", true)==0)
{
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
if(strcmp( Name, "your name","second name"))
{
MoveObject (door, 1460.2858886719, -2214.7924804688, 8.5460910797119, 5);
SendClientMessage(playerid, 0x0000000F, "Clan garage is now opening");
}
return 1;
}

if (strcmp(cmdtext, "/GarageClose", true)==0)
{
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
if(strcmp( Name, "your name","second name"))
{
MoveObject (door, 1460.2858886719, -2214.7924804688, 14.546091079712, 5);
SendClientMessage(playerid, 0x0000000F, "Clan garage is now closing.");
}
return 1;
}
put this on your command!!!

not tested!!!
Reply


Messages In This Thread
Command help! Easy for pro's! - by Kidel - 24.06.2010, 17:37
Re: Command help! Easy for pro's! - by Kidel - 24.06.2010, 17:45
Re: Command help! Easy for pro's! - by Kidel - 24.06.2010, 17:51
Re: Command help! Easy for pro's! - by billiout - 24.06.2010, 17:58
Re: Command help! Easy for pro's! - by MastahServers - 24.06.2010, 18:00
Re: Command help! Easy for pro's! - by Kidel - 24.06.2010, 18:02
Re: Command help! Easy for pro's! - by Kidel - 24.06.2010, 18:03
Re: Command help! Easy for pro's! - by billiout - 24.06.2010, 18:05
Re: Command help! Easy for pro's! - by Kidel - 24.06.2010, 18:07
Re: Command help! Easy for pro's! - by MastahServers - 24.06.2010, 18:09

Forum Jump:


Users browsing this thread: 1 Guest(s)