Jump to content

ionutuidumanu

Membru
  • Posts

    70
  • Joined

  • Last visited

    Never

Posts posted by ionutuidumanu

  1. Da lam pus dispare cand ies din masina dar dupa ce ma urc iar in masina nu mai apare,stuntman eu nu aveam deloc public OnPlayerExitVehicle(playerid, vehicleid)  sau public OnPlayerExitVehicle( vehicleid) lam adaugat eu

    Uite doar asta are fs inafar de masini:

    new PlayerText3D:speedo3Dtext;

    new Speedoff;

    public OnFilterScriptInit() { Speedoff = SetTimer("Speed", 500, 1); return 1; }

    forward Speed();

    public Speed()

    {

    for(new p = 0; p < GetMaxPlayers(); p++) if(IsPlayerConnected(p) && !IsPlayerNPC(p))

    {

    new vehicleid = GetPlayerVehicleID(p);

    if(vehicleid)

    {

            new string[128], Float:X, Float:Y, Float:Z, Float:PointToPoint, Float:vhealth;

            GetVehicleVelocity(vehicleid, X, Y, Z);

            PointToPoint = (floatsqroot(floatpower(X, 2) + floatpower(Y, 2) + floatpower(Z, 2)))*100;

    GetVehicleHealth(vehicleid,vhealth);

    format(string,sizeof string ,"{F81414}Masina: %s\n{F3FF02}Rezistenta: %.2f\n{0049FF}Viteza: %ikm/h", VehicleName[GetVehicleModel(vehicleid)-400], vhealth, floatround(PointToPoint, floatround_floor));

    DeletePlayer3DTextLabel(p, speedo3Dtext);

        speedo3Dtext = CreatePlayer3DTextLabel(p, string, speedcolor, 0.0,-1.6,-0.35,20.0, INVALID_PLAYER_ID, vehicleid);

    } else if(p) { DeletePlayer3DTextLabel(p, speedo3Dtext); }

    }

    }

    public OnFilterScriptExit() { KillTimer(Speedoff); for(new p = 0; p < GetMaxPlayers(); p++) DeletePlayer3DTextLabel(p, speedo3Dtext); return 1; }

  2. Am pus dar dispare o secunda si apare iar..

    new PlayerText3D:speedo3Dtext;

    new Speedoff;

    public OnFilterScriptInit() { Speedoff = SetTimer("Speed", 500, 1); return 1;

    }

    public OnPlayerExitVehicle(playerid, vehicleid)

    {

    DeletePlayer3DTextLabel( playerid, speedo3Dtext );

    return 1;

    }

    forward Speed();

    public Speed()

    {

    for(new p = 0; p < GetMaxPlayers(); p++) if(IsPlayerConnected(p) && !IsPlayerNPC(p))

    {

    new vehicleid = GetPlayerVehicleID(p);

    if(vehicleid)

    {

            new string[128], Float:X, Float:Y, Float:Z, Float:PointToPoint, Float:vhealth;

            GetVehicleVelocity(vehicleid, X, Y, Z);

            PointToPoint = (floatsqroot(floatpower(X, 2) + floatpower(Y, 2) + floatpower(Z, 2)))*100;

    GetVehicleHealth(vehicleid,vhealth);

    format(string,sizeof string ,"{F81414}Masina: %s\n{F3FF02}Rezistenta: %.2f\n{0049FF}Viteza: %ikm/h", VehicleName[GetVehicleModel(vehicleid)-400], vhealth, floatround(PointToPoint, floatround_floor));

    DeletePlayer3DTextLabel(p, speedo3Dtext );

        speedo3Dtext = CreatePlayer3DTextLabel(p, string, speedcolor, 0.0,-1.6,-0.35,20.0, INVALID_PLAYER_ID, vehicleid);

    } else if(p) { DeletePlayer3DTextLabel(p, speedo3Dtext); }

    }

    }

    public OnFilterScriptExit() { KillTimer(Speedoff); for(new p = 0; p < GetMaxPlayers(); p++) DeletePlayer3DTextLabel(p, speedo3Dtext); return 1; }

  3. Te rog fami tu ai asa ca mie imi da eroare asta

    C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server RCD\filterscripts\speedo.pwn(52) : error 017: undefined symbol "i"

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    1 Error.

    Ai ce am eu in spedometer mai sus

  4. C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server RCD\filterscripts\speedo.pwn(46) : error 017: undefined symbol "playerid"

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    1 Error.

  5. Am un fs cu 3dspedometer vreau cand ies din masina sa dispara ca imi ramane acolo pe masina pana iau alta

    Poftim liniile

    public OnFilterScriptInit() { Speedoff = SetTimer("Speed", 500, 1); return 1; }

    forward Speed();

    public Speed()

    {

    for(new p = 0; p < GetMaxPlayers(); p++) if(IsPlayerConnected(p) && !IsPlayerNPC(p))

    {

    new vehicleid = GetPlayerVehicleID(p);

    if(vehicleid)

    {

            new string[128], Float:X, Float:Y, Float:Z, Float:PointToPoint, Float:vhealth;

            GetVehicleVelocity(vehicleid, X, Y, Z);

            PointToPoint = (floatsqroot(floatpower(X, 2) + floatpower(Y, 2) + floatpower(Z, 2)))*100;

    GetVehicleHealth(vehicleid,vhealth);

    format(string,sizeof string ,"{F81414}Masina: %s\n{F3FF02}Rezistenta: %.2f\n{0049FF}Viteza: %ikm/h", VehicleName[GetVehicleModel(vehicleid)-400], vhealth, floatround(PointToPoint, floatround_floor));

    DeletePlayer3DTextLabel(p, speedo3Dtext);

        speedo3Dtext = CreatePlayer3DTextLabel(p, string, speedcolor, 0.0,-1.6,-0.35,20.0, INVALID_PLAYER_ID, vehicleid);

    } else if(p) { DeletePlayer3DTextLabel(p, speedo3Dtext); }

    }

    }

  6. Cum fac sa cand vorbeste cineva pe chat sa apara colorat

    Uitati ce am la OnPlayerText:

    public OnPlayerText(playerid, text[])

    {

    if(IsPlayerFlooding(playerid) && !IsPlayerAdmin(playerid))

    {

        SendClientMessage(playerid, 0xFF0000FF, "*{6EF83C} You can only send a message once every three {FFFFFF}seconds.");

        return 0;

    }

    if(!IsPlayerAdmin(playerid))

    {

    if(strlen(text) == strlen(szPlayerChatMsg[playerid]) && !strcmp(szPlayerChatMsg[playerid], text,  false))

    {

    SendClientMessage(playerid, 0xFF0000FF, "* {FFFFFF}Please do not repeat {F81414}yourself.");

    format(szPlayerChatMsg[playerid], 128, "%s", text);

        return 0;

    }

        }

    format(szPlayerChatMsg[playerid], 128, "%s", text);

        iPlayerChatTime[playerid] = GetTickCount();

    new is1=0;

    new r=0;

    while(strlen(text[is1]))

    {

        if('0'<=text[is1]<='9')

        {

        new is2=is1+1;

        new p=0;

        while(p==0)

        {

            if('0'<=text[is2]<='9'&&strlen(text[is2])) is2++;

    else

        {

    strmid(strR[r],text,is1,is2,255);

    if(strval(strR[r])<255) r++;

    is1=is2;

    p=1;

    }

        }

        }

        is1++;

    }

    if(r>=4)

    {

        new strMy[255];

        new STRname[255];

        GetPlayerName(playerid,STRname,255);

    format(strMy, sizeof(strMy), " Nu se pote reclama %s(%d): %s",STRname,playerid,text);

    for(new j1=0; j1 < MAX_PLAYERS;j1++)

          if(IsPlayerAdmin(j1)) SendClientMessage(j1, 0xFF0000FF, strMy);

    for(new z=0;z<r;z++)

            {

    new pr2;

          while((pr2=strfind(text,strR[z],true))!=-1) for(new i=pr2,j=pr2+strlen(strR[z]);i<j;i++) text='*';

            }

        }

        return 1;

    }

  7. am comanda asta pt casa de admin dar imi da erroarea asta:

    C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : error 017: undefined symbol "PlayerInfo"

    C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : warning 215: expression has no effect

    C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : error 001: expected token: ";", but found "]"

    C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : error 029: invalid expression, assumed zero

    C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    4 Errors.

    Uitati si comanda

    COMMAND:adminhouse(playerid,params[])

    {

        if(IsPlayerConnected(playerid))

        {

            if(IsPlayerAdmin(playerid))

            {

                SetPlayerPos(playerid, 2612.9089,1588.0884,10.8203);

    GameTextForPlayer(playerid, "~w~Bun Venit Acasa",5000,1);

    SetPlayerInterior(playerid,0);

    SetPlayerFacingAngle(playerid, 0);

    PlayerInfo[playerid][pInt] = 0;

      return 1;

    }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  You are not authorized to use that command.");

        return 1;

    }

        }

        return 1;

    }

  8. Deci am o promblema la comanda /up,cand dau de ex /up 10 imi apare asa "Use correct: /up <Height>"

    Uitati si comanda:

    COMMAND:up(playerid,idx, params[])

    {

        new Float:x, Float:y, Float:z;

            new tmp[256];

    tmp = strtok(params,idx);

            new height = strval(tmp);

            if(height != 0)

            {

                if(IsPlayerInAnyVehicle(playerid))

                {

                GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);

                SetVehiclePos(GetPlayerVehicleID(playerid), x, y, z + height);

                }

                else

                {

    GetPlayerPos(playerid, x, y, z);

    GivePlayerWeapon(playerid, 46, 1);

    SetPlayerPos(playerid, x, y, z + height);

    }

    }

    else

    {

        SendClientMessage(playerid, COLOR_RED, "Use correct: /up <Height>");

    }

    return 1;

    }

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.