[Ajuda] Policias proximos
#2

PHP код:
forward vendeu(playerid);
public 
vendeu(playerid)
{
    new 
Name[24], targetidlocation[MAX_ZONE_NAME], Msg[128];
    for(new 
iGetMaxPlayers(); i++)
    {
        if(
IsPlayerConnected(i))
        {
            new 
Float:PosXFloat:PosYFloat:PosZ;
            
GetPlayerPos(playeridPosXPosYPosZ);
            if(
IsPlayerInRangeOfPoint(i500.0PosXPosYPosZ) && APlayerData[i][PlayerClass] == ClassPolice)
            {
                
GetPlayerName(playeridNamesizeof(Name));
                
GetPlayer2DZone(targetidlocationMAX_ZONE_NAME);
                
format(Msg128"{FFFFFF}%s {0000FF}esta vendendo drogas em{ffffff}%s"Namelocation);
                
Police_SendMessage(Msg);
                
SetPlayerWantedLevel(playeridGetPlayerWantedLevel(playerid) + 1);
                
APlayerData[playerid][PoliceCanJailMe] = true;
            }
        }
    }
    return 
1;

Tente assim
Reply


Messages In This Thread
Policias proximos - by lHesoyaml - 25.07.2014, 20:25
Re: Policias proximos - by darkxdll - 25.07.2014, 20:29
Respuesta: Policias proximos - by lHesoyaml - 25.07.2014, 20:39

Forum Jump:


Users browsing this thread: 1 Guest(s)