Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(new pl = 0; pl <MAX_PLANT; pl++)
- {
- if(pDB[ pl ][ pProcesas ])
- {
- new
- plantlaikas [ 50 ],
- plantolaikas = pDB[ pl ][ pLaikas ]
- ;
- if(plantolaikas < gettime()) plantlaikas = "-";
- else plantlaikas = ConvertSeconds(plantolaikas - gettime());
- new
- string [ 280 ]
- ;
- format(string, sizeof string, "{ffffff}PLANTACIJOS STATUSAS ( {FF3333}UŽIMTA{ffffff} )\n\nPlantacijos derlių galima pasiimti ( {73BAE6}%s{ffffff} )\nPlantacijos savininkas ( {73BAE6}%s{ffffff} )\n \nPlantacijos valdymas '{73BAE6}NUMPAD 4{ffffff}'", plantlaikas, pDB[ pl ][ pOwner ]);
- Update3DTextLabelText(pDB[ pl ][ pLabel ], 0xFFFFFFFF, string);
- if(!strcmp(GetPlayerNameEx(pl), pDB [ pl ] [ pOwner ], true, MAX_PLAYER_NAME)) SendClientMessage(pl, RED, "naujinam timerį");
- if(pDB[ pl ][ pLaikas ] < gettime() && pDB[ pl ][ pSeklos ] < 0)
- {
- pDB[ pl ][ pSeklos ] += 1;
- pDB[ pl ][ pProcesas ] = false;
- pDB[ pl ][ pLaikas ] = 0;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement