Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:ffind(playerid, params[])
- {
- if (PlayerInfo[playerid][pLeader] == 1) && (PlayerInfo[playerid][pRank] = 3) || PlayerInfo[playerid][pShopTech] >= 0)
- {
- SendClientMessageEx(playerid, COLOR_RED, "* Listing all gates within 5 meters of you...");
- for(new i, Float: fGatePos[3], szMessage[32]; i < MAX_GATES; i++)
- {
- GetDynamicObjectPos(GateInfo[i][gGATE], fGatePos[0], fGatePos[1], fGatePos[2]);
- if(IsPlayerInRangeOfPoint(playerid, 5, fGatePos[0], fGatePos[1], fGatePos[2]))
- {
- if(GateInfo[i][gModel] != 0)
- {
- format(szMessage, sizeof(szMessage), "Gate ID %d (VW: %d) | %f from you", i, GateInfo[i][gVW], GetPlayerDistanceFromPoint(playerid, fGatePos[0], fGatePos[1], fGatePos[2]));
- SendClientMessageEx(playerid, COLOR_WHITE, szMessage);
- }
- }
- }
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GRAD2, "Ban khong duoc phep su dung lenh nay.");
- }
- return 1;
- }
- CMD:fkey(playerid, params[])
- {
- new gateid;
- if(sscanf(params, "i", gateid))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "SU DUNG: /fkey [gateid]");
- return 1;
- }
- if (PlayerInfo[playerid][pLeader] == 1) && (PlayerInfo[playerid][pRank] = 3) || PlayerInfo[playerid][pShopTech] >= 0)
- {
- new string[128], timertxt, distancetxt;
- switch(GateInfo[gateid][gTimer])
- {
- case 1: timertxt = 1;
- case 2: timertxt = 3;
- case 3: timertxt = 5;
- case 4: timertxt = 10;
- default: timertxt = 0;
- }
- switch(GateInfo[gateid][gRenderHQ])
- {
- case 1: distancetxt = 100;
- case 2: distancetxt = 150;
- case 3: distancetxt = 200;
- default: distancetxt = 60;
- }
- format(string,sizeof(string),"|___________ Gate Status (ID: %d) ___________|", gateid);
- SendClientMessageEx(playerid, COLOR_GREEN, string);
- format(string, sizeof(string), "X: %f | Y: %f | Z: %f | RotX: %f | RotY: %f | RotZ: %f", GateInfo[gateid][gPosX], GateInfo[gateid][gPosY], GateInfo[gateid][gPosZ], GateInfo[gateid][gRotX], GateInfo[gateid][gRotY], GateInfo[gateid][gRotZ]);
- SendClientMessageEx(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "XM: %f | YM: %f | ZM: %f | RotXM: %f | RotYM: %f | RotZM: %f", GateInfo[gateid][gPosXM], GateInfo[gateid][gPosYM], GateInfo[gateid][gPosZM], GateInfo[gateid][gRotXM], GateInfo[gateid][gRotYM], GateInfo[gateid][gRotZM]);
- SendClientMessageEx(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Model: %d | HID: %d | VW: %d | Int: %d | Allegiance: %d | Group Type: %d | Group: %d | Family: %d", GateInfo[gateid][gModel], GateInfo[gateid][gHID], GateInfo[gateid][gVW], GateInfo[gateid][gInt], GateInfo[gateid][gAllegiance], GateInfo[gateid][gGroupType], GateInfo[gateid][gGroupID], GateInfo[gateid][gFamilyID]);
- SendClientMessageEx(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Range: %.3f | Speed: %.3f | Timer: %d second(s) | Stream: %d | Automated: %d | Locked: %d | Pass: %s", GateInfo[gateid][gRange], GateInfo[gateid][gSpeed], timertxt, distancetxt, GateInfo[gateid][gAutomate], GateInfo[gateid][gLocked], GateInfo[gateid][gPass]);
- SendClientMessageEx(playerid, COLOR_WHITE, string);
- }
- else SendClientMessageEx(playerid, COLOR_GRAD1, "Ban khong duoc phep su dung lenh nay.");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement