0 Members and 4 Guests are viewing this topic.
procedure OnPlayerSpeak(ID: Byte; Text: string);begin if Text = '!kill' then begin DoDamage(ID,4000);end;end;begin if Text = '!heal' then begin DoDamage(ID,-4000);end;end;
procedure OnPlayerSpeak(ID: Byte; Text: string);begin if Text = '!kill' then begin DoDamage(ID,4000); end; if Text = '!heal' then begin DoDamage(ID,-4000); end;end;
Ahh Fine thank you and another Question how can i do this Code Thing with the Script in it?
And now my Server is 9999PING too omfg! Now im at the End of My Live^^
function OnPlayerCommand(ID: Byte; Text: string): boolean;begin if Text = '/fireshield' then begin CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y') 65, 0, 0,100, 5, 1); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y') - 65, 0, 0,100, 5, 1); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y') 0, - 65, 0,100, 5, 1); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y') 0, 65, 0,100, 5, 1); end;end;
CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 65, 0, 100, 5, 1); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), - 65, 0, 100, 5, 1); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 0, - 65, 100, 5, 1); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 0, 65, 100, 5, 1);
Don't trust any of the examples on that page, figure them out yourself. Same goes for any of those functions really.
if Text = '/heal' then begin DoDamage(ID,-4000); end;
Thanks again. How can i add to this /heal script that i can write ID's which i want to heal like /heal 4 for Player4 i'm not sure but i think that is some with get Piece or so can u say me how? Code: [Select] if Text = '/heal' then begin DoDamage(ID,-4000); end;
if GetPiece(Text,' ',0) = '/heal' then begin DoDamage(strtoint(GetPiece(Text,' ',1)),-4000); end;
I don't have any result := true in it should i add it with false?
procedure OnPlayerCommand(ID: Byte; Text: string);begin if GetPiece(Text,' ',0) = '/heal' then begin DoDamage(strtoint(GetPiece(Text,' ',1)),-4000); end; if Text = '/boom' then begin DoDamage(ID,5000) CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 6, 0, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), - 6, 0, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 0, - 6, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 0, 6, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 6, 6, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), - 6, - 6, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 6, - 6, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), - 6, 6, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 3, 6, 100, 4, 1); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), - 3, -6, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 3, - 6, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), - 3, 6, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 6, 3, 100, 4, 1); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), - 6, -3, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 6, - 3, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), - 6, 3, 100, 4, 0); end;end;
procedure OnPlayerCommand(ID: Byte; Text: string);begin if GetPiece(Text,' ',0) = '/heal' then begin DoDamage(strtoint(GetPiece(Text,' ',1)),-4000); end; if Text = '/boom' then begin DoDamage(ID,5000) CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 6, 0, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), - 6, 0, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 0, - 6, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 0, 6, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 6, 6, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), - 6, - 6, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 6, - 6, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), - 6, 6, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 3, 6, 100, 4, 1); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), - 3, -6, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 3, - 6, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), - 3, 6, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 6, 3, 100, 4, 1); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), - 6, -3, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), 6, - 3, 100, 4, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y'), - 6, 3, 100, 4, 0); end; result := false;end;
procedure OnPlayerCommand(ID: Byte; Text: string);
function OnPlayerCommand(ID: Byte; Text: string): boolean;
procedure AppOnIdle(Ticks: integer);begin if Ticks mod (60 * 20) = 0 then begin if ?playername? givebonus(?,2); end; end;end;
procedure AppOnIdle(Ticks: integer);var i: integer; X, Y: single;begin if (Ticks mod (60 * 20) = 0) then begin for i:= 1 to 32 do begin if (IDToName(i) = 'xxx') then begin GetPlayerXY(i, X, Y); SpawnObject(X, Y, 21); end; end; end;end;