Nu te inregistra daca esti idiot sau agramat!
AlphaCS.RO[ORIGINAL GAMING]
Thanks:
0
Likes:
0
-
[Tutorial] Cum sa salvezi vremea si timpul dupa restart
// in orice loc al modului chiar si la sfirsit
stock SaveWAndT()
{
new strtmp[8];
GetServerVarAsString("weather", strtmp, sizeof strtmp);
SetSVarString("un_Weather", strtmp);
GetServerVarAsString("worldtime", strtmp, sizeof strtmp);
SetSVarString("un_WorldTime", strtmp);
}
stock LoadWAndT()
{
new strtmp[8];
if(GetSVarType("un_Weather"))
{
GetSVarString("un_Weather", strtmp, sizeof strtmp);
SetWeather(strval(strtmp));
}
if(GetSVarType("un_WorldTime"))
{
GetSVarString("un_WorldTime", strtmp, sizeof strtmp);
SetWorldTime(strval(strtmp));
}
}
Extinde
Citat
// trecem la publicuri si introducem aceste stock-uri
public OnGameModeInit()
{
LoadWAndT();
return 1;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules