24.06.2010, 17:58
Код:
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; }
not tested!!!