will das piss system einfügen kann mir jemand sagen wie

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • das möchte ich einfügen


    /*
    "Piss System v1"
    "By Evoturk"
    */
    #include "a_samp"
    #include <core>
    #include <float>


    #pragma tabsize 0


    new timer;
    new timer2;
    new script[256]="Piss System";
    new surum[256]="v1";
    new yapimci[256]="Evoturk";
    new cis[MAX_PLAYERS];
    public OnFilterScriptInit()
    {
    printf("%s %s By %s",script,surum,yapimci);
    timer=SetTimer("CisUpdate",30000,1);
    timer2=SetTimer("CisKontrol",1000,1);
    }
    public OnFilterScriptExit()
    {
    printf("%s %s By %s",script,surum,yapimci);
    KillTimer(timer);
    KillTimer(timer2);
    }
    forward CisKontrol();
    public CisKontrol()
    {
    for(new i; i<MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    new f1[256];
    format(f1,256,"~n~~n~~n~~n~~n~~n~~b~Piss: ~r~%d",cis[i]);
    GameTextForPlayer(i,f1,1000,5);
    }
    }
    }
    forward CisUpdate();
    public CisUpdate()
    {
    for(new i; i<MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    cis[i]=cis[i]+1;
    if(cis[i]==100)
    {
    SendClientMessage(i,0xFF00AA,"You must write /piss.If you don't write it in 30 second you will dead!");
    }
    if(cis[i]>=100)
    {
    SendClientMessage(i,0xFF00AA,"You don't write /piss and you are dead!");
    SetPlayerHealth(i,0.0);
    cis[i]=0;
    }
    }
    }
    }
    public OnPlayerDisconnect(playerid,reason)
    {
    cis[playerid]=0;
    return 1;
    }
    public OnPlayerConnect(playerid)
    {


    return 1;
    }
    public OnPlayerCommandText(playerid,cmdtext[])
    {
    if(strcmp("/piss",cmdtext,true)==0)
    {
    SetPlayerSpecialAction(playerid, 68);
    CisBitirTimer(playerid);
    SendClientMessage(playerid,0xFF00AA,"You are pissing.You are stoping piss in 30 second");
    return 1;
    }
    return 0;
    }
    forward CisBitis(playerid);
    public CisBitis(playerid)
    {
    cis[playerid]=0;
    SendClientMessage(playerid,0xFF00AA,"Stoping Piss!");
    ClearAnimations(playerid);
    }
    stock CisBitirTimer(playerid){
    SetTimerEx("CisBitis",10000,false,"i",playerid);
    }