Gang help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gang help (
/showthread.php?tid=661152)
Gang help -
SeeNN - 24.11.2018
What I must to do to work when a player is in a gang?
I make something like that,and don't work so good..
Код HTML:
TotalGangTime(playerid, &hgtime=0, &mgtime=0, &sgtime=0)
{
CosminInfo[playerid][GangID] = CosminInfo[playerid][TotalTime] = ((gettime() - CosminInfo[playerid][ConnectTime]) + (CosminInfo[playerid][ghours]*60*60) + (CosminInfo[playerid][gmins]*60) + (CosminInfo[playerid][gsecs]));
CosminInfo[playerid][GangID] = hgtime = floatround(CosminInfo[playerid][TotalGTime] / 3600, floatround_floor);
CosminInfo[playerid][GangID] = mgtime = floatround(CosminInfo[playerid][TotalGTime] / 60, floatround_floor) % 60;
CosminInfo[playerid][GangID] = sgtime = floatround(CosminInfo[playerid][TotalGTime] % 60, floatround_floor);
return CosminInfo[playerid][GangID] = CosminInfo[playerid][TotalGTime];
}