0 Members and 1 Guest are viewing this topic.
procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: integer);begin if (Getplayerstat(ID,'name')='Zombie') and (PrimaryNum <> 15) then begin ForceWeapon(ID,15,15,0); end; if (Getplayerstat(ID,'name')='Rancid') and (PrimaryNum <> 10) then begin ForceWeapon(ID,10,10,0); end; if (Getplayerstat(ID,'name')='Mr.Death') and (PrimaryNum <> 10) then begin ForceWeapon(ID,10,10,0); end; end;
[*] [Error] Extreme -> (OnWeaponChange): Out of Global Vars range[*] [Error] Extreme -> (OnWeaponChange): Invalid Opcode
procedure AppOnIdle(Ticks: integer);vari: integer;beginfor i := 1 to 32 do if GetPlayerStat(i,'human') = false then begin // unless you want anyone who is who is having the nicks to get the weapon if Getplayerstat(i,'name')='Zombie' then if GetPlayerStat(i,'primary') <> 15 then ForceWeapon(i,15,255,0); if Getplayerstat(i,'name')='Rancid' then if GetPlayerStat(i,'primary') <> 10 then ForceWeapon(i,10,255,0); if Getplayerstat(i,'name')='Mr.Death' then if GetPlayerStat(i,'primary') <> 10 then ForceWeapon(i,10,255,0);end;end;
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.
Use IDToName instead of GetPlatyerStat(). It's more stable afaik
Quote from: FalconPL on June 24, 2010, 04:35:04 pmUse IDToName instead of GetPlatyerStat(). It's more stable afaikwasn't it exactly the other way?