0 Members and 1 Guest are viewing this topic.
Also is it possible to have 2 different draw texts onscreen at the same time?
How can I create an INI ingame using the script?
WriteFile(/accounts/name + '.ini','');
if getplayerstat(ID,'team') = 2 then Command('/setteam1 ' + inttostr(ID));
OK I have that working but how would i get them to write in a specific folder?Code: [Select]WriteFile(/accounts/name + '.ini','');maby?
WriteFile('accounts/' + whateverThePlayerMightBeNamed + '.ini','');
ALSO How would i go about telling if a zombie is stuck in polys? I know it is going to take some raycast useage but when i tired it they were randomly killed just by walking near some oddly shaped polys.
function player_raycast(id: byte): boolean;var x,dist: single;begin x := GetPlayerStat(id,'x') + iif(GetPlayerStat(id,'direction') = '>', 3, -3); result := raycast(x, GetPlayerStat(id,'y')-6, x, GetPlayerStat(id,'y')-6, dist, 1);end;
Ok I have everything working that is related to accounts. I am makeing an stats system with top 5 and I need to know how to break a for loop. Is it exit or break or what, im thinking its break?