06.10.2018, 08:30
I want something in my script that can improve it. I need to have the time between the screen from number 3 back to zero and it will appear what I am looking for. And it will automatically open the port when the password has been found.
Please help me . I started to learn the script. Sorry my language is not good.
This is my scenario.
Please help me . I started to learn the script. Sorry my language is not good.
This is my scenario.
Код:
CMD:ffind(playerid, params[])
{
if(PlayerInfo[playerid][pDuty] && IsACop(playerid))
{
//SendClientMessageEx(playerid, COLOR_RED, "* Listing all gates within 5 meters of you...");
for(new i, Float: fGatePos[3], gateid, string[128], szMessage[32]; i < MAX_GATES; i++)
{
if(sscanf(params, "i", gateid))
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)", i, GateInfo[i][gVW]);
SendClientMessageEx(playerid, COLOR_WHITE, szMessage);
format(string,sizeof(string),"|___________ Password Gate (ID: %d) ___________|", gateid);
format(string, sizeof(string), "PassWord Gate: %s", GateInfo[i][gPass]);
SendClientMessageEx(playerid, COLOR_WHITE, string);
}
}
}
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD2, "Ban khong phai la nhan vien nha nuoc.");
}
return 1;
}


?]