06.05.2014, 17:33
Gente to aki pra ajudar vcs a colocar esse comando no seu servido de Truck......
esse comando /190 vc coloca na include PPC_PlayerCommands
para colocar aquele texto no radar olha ai como q se FAZ.....
Va na PPC_Common e add em SetupSpeedCamera
depois coloca isso em /deletarradar
e no PPC_Defines na parte enum TSpeedCamera coloca isso..
esse comando /190 vc coloca na include PPC_PlayerCommands
pawn Код:
COMMAND:190(playerid, params[])
{
new bool:CopOnline = false, Msg[128], Name[24], Fine;
SendAdminText(playerid, "/190", params);
if (APlayerData[playerid][LoggedIn] == true)
{
if (APlayerData[playerid][PlayerClass] != ClassPolice) {
if (GetPlayerWantedLevel(playerid) >= 1) {
GetPlayerName(playerid, Name, sizeof(Name));
format(Msg, 128, "{00FF00}Jogador {FFFF00}%s{00FF00} estб precisando da policia!.", Name);
for (new i; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if (APlayerData[i][PlayerClass] == ClassPolice)
{
CopOnline = true;
SendClientMessage(i, 0xFFFFFFFF, Msg);
}
}
}
if (CopOnline == true)
{
SendClientMessage(playerid, 0xFFFFFFFF, "{00FF00}Existe policial online, aguarde...");
}
else
{
Fine = GetPlayerWantedLevel(playerid) * DefaultFinePerStar;
RewardPlayer(playerid, -Fine, 0);
SetPlayerWantedLevel(playerid, 0);
format(Msg, sizeof(Msg), "{FF0000}Sua ficha foi limpa no valor de {FFFF00}$%i {FF0000}pelo motivo de nгo existe policial online!", Fine);
SendClientMessage(playerid, 0xFFFFFFFF, Msg);
}
}
else
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Vocк nгo pode usa /190 quando nгo estб sendo procurado!");
}
else
return 0;
}
else
return 0;
return 1;
}
Va na PPC_Common e add em SetupSpeedCamera
pawn Код:
new CS_TEXTO[256];
format(CS_TEXTO,256,"{FF0000}-|{FFFFFF}Velocidade Maxima{FF0000}|- \n{FF0000}%02i {FFFFFF}Km/h",MaxSpeed);
ACameras[CamID][Cam3DText] = CreateDynamic3DTextLabel(CS_TEXTO,-1,x,y,z +5.0,120.0);
pawn Код:
DestroyDynamic3DTextLabel(ACameras[CamID][Cam3DText]);
pawn Код:
Text3D:Cam3DText