0 Members and 1 Guest are viewing this topic.
Const Color = $FEDEBA; //Color to be usedErrorColor = $FF6155; //Error's Color.Function OnPlayerSpeak(ID: Byte; Text: String): Boolean; Var S: Integer; Begin if Text = '!ping' Then WriteConsole(ID,'Ping: '+IDToPing(ID),Color); if (GetPiece(Text,' ',0) = '!ping') AND (GetPiece(Text,' ',1) <> Nil) Then Try S := StrToInt(GetPiece(Text,' ',1)); if GetPlayerStat(S,'Active') = True Then Begin WriteConsole(ID,'Ping '+IDToName(S)+': '+GetPlayerStat(S,'Ping'),Color); end else WriteConsole(ID,'Bu oyuncu serverde degil!!',ErrorColor); Except WriteConsole(ID,'ID belirt, isim degil!!',ErrorColor); end;end;
procedure onplayerspeak(ID: byte; Text: string);beginif (text='!ping') then begin writeconsole(ID,'Your ping: '+getplayerstat(ID,'ping'), $FFFFFFFF); end;end;
function getname(Name: string): byte;var i: byte;beginresult := 0; for i := 1 to 32 do if getplayerstat(i,'active')=true then begin if containsstring(lowercase(getplayerstat(i,'name')),lowercase(name)) then begin result := i; break; end; end;end;procedure showping(ID: byte; targetname: string);var target:byte;beginif targetname <> '' then target := getname(targetname) else target := ID;if target = 0 then begin exit;end;writeconsole(ID,'Player: '+getplayerstat(target,'name'),$FFFFFFFF);writeconsole(ID,'Ping: '+getplayerstat(target,'ping'),$FFFFFFFF);end;function onplayerspeak(ID: byte; Text: string): boolean;beginif getpiece(text,' ',0) = '!ping' then showping(ID,getpiece(text,getpiece(text,' ',0)+' ',1));end;
When I want a script, everybody shout me "Learn Pascal or stfu try it, everytime you just want" etc etc
When I want a script
@BonecrusherIf I want "please gimme ping script", sure, you will shout me.
yeah he did not do anything that nothing to tell them, so back off guys.