[Ajuda] Alguns Erros e Warnings :S
#3

ok

stock da 8035 e 8040
pawn Код:
stock IsPlayerAimingAt(playerid,Float:x,Float:y,Float:z,Float:radius)
{
    new Float:cx,Float:cy,Float:cz,Float:fx,Float:fy,Float:fz;
    GetPlayerCameraPos(playerid, cx, cy, cz);
    GetPlayerCameraFrontVector(playerid, fx, fy, fz);
    return (radius >= DistanceCameraTargetToLocation(cx, cy, cz, x, y, z, fx, fy, fz));
}
linhas proximas a 9125
pawn Код:
new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, sizeof(pName));
    SendAdminMessage(COLOR_YELLOW, string2);
    new playerName[MAX_PLAYER_NAME],f;
    GetPlayerName(playerid,playerName,MAX_PLAYER_NAME);
    if(strfind(playerName,"_",true,1)!=-1)
    f=1;
    if(playerName[strlen(playerName)-1]=='_')
    f=0;
    for(new i=0;i<strlen(playerName);i++)
    if((playerName[i]<='9')&&(playerName[i]>='0'))
    f=0;
    if(!f)
    {
if completo da 91531
pawn Код:
if(IsACop(playerid) && GetPlayerWeapon(playerid) == 23 && Tazer[playerid] == 1)
        {
            new Float:X,Float:Y,Float:Z,Float:pX,Float:pY,Float:pZ;
            GetPlayerPos(playerid, pX,pY,pZ);
            for(new i=0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(IsPlayerInRangeOfPoint(i,60, pX,pY,pZ))
                    {
                        if(i != playerid)
                        {
                            GetPlayerPos(i, X,Y,Z);
                            new iname[MAX_PLAYER_NAME];
                            new string[256]
                            GetPlayerName(i, iname, sizeof(iname));
                            if(IsPlayerAimingAt(playerid, X,Y,Z,1.5))
                            {
                                GameTextForPlayer(i,"~r~Acertaram um Tazer",9000,4);
                                GameTextForPlayer(playerid, "~b~Usou o Tazer",2000,4);
                                TogglePlayerControllable(i, 0);
                                TogglePlayerControllable(playerid, 0);
                                ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
                                SetTimerEx("Unfreezeply",9000,0,"i",i);
                                ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
                                SetTimerEx("Unfreezeply",1500,0,"i",playerid);
                                format(string, sizeof(string),"* %s Aponta sua Tazer em %s e acertou ele",sendername,iname);
                            }
                            else return GameTextForPlayer(playerid, "~b~Errou o tazer",3750,4);
                        }
                    }
                }
            }
        }
Reply


Messages In This Thread
Alguns Erros e Warnings :S - by SonicPaintballer - 08.01.2013, 05:59
Re: Alguns Erros e Warnings :S - by zSuYaNw - 08.01.2013, 06:06
Re: Alguns Erros e Warnings :S - by SonicPaintballer - 08.01.2013, 06:10
Re: Alguns Erros e Warnings :S - by zSuYaNw - 08.01.2013, 06:17
Re: Alguns Erros e Warnings :S - by SonicPaintballer - 08.01.2013, 06:20
Re: Alguns Erros e Warnings :S - by zSuYaNw - 08.01.2013, 06:26
Re: Alguns Erros e Warnings :S - by SonicPaintballer - 08.01.2013, 06:28
Re: Alguns Erros e Warnings :S - by zSuYaNw - 08.01.2013, 06:30
Re: Alguns Erros e Warnings :S - by SonicPaintballer - 08.01.2013, 06:31
Re: Alguns Erros e Warnings :S - by zSuYaNw - 08.01.2013, 06:38

Forum Jump:


Users browsing this thread: 2 Guest(s)