31.08.2011, 13:35
------------------ FilterScript ------------------
- FilterScript Vem com 4 Carros Tunados
- Ao sair do carro ele Some, isso para evitar muitos carros criados
------------------ Fotos ------------------
------------------ Codigo: ------------------
Creditos: LipeStronda
- FilterScript Vem com 4 Carros Tunados
- Ao sair do carro ele Some, isso para evitar muitos carros criados
------------------ Fotos ------------------
Quote:
|
pawn Код:
// =============================================================================
#include <a_samp>
#define Dialog 1000
new LipeStronda;
// =============================================================================
public OnFilterScriptInit()
{
print("FilterScript Tunados Ligado ;D by: Lipe_Stronda");
return 1;
}
// =============================================================================
public OnFilterScriptExit()
{
print("FilterScript Desligado");
return 1;
}
// =============================================================================
public OnPlayerConnect(playerid)
{
return 1;
}
// =============================================================================
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(vehicleid == LipeStronda)
{
DestroyVehicle(LipeStronda);
}
return true;
}
// =============================================================================
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/tunados", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_LIST, "=-= Carros Tunados =-=", "Elegy\nSultan\nJester\nUranus", "Selecionar", "Cancelar");
return 1;
}
return 0;
}
// =============================================================================
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1000)
{
if(!response)
return true;
else
{
switch (listitem)
{
case 0:
{
new Float:P[3];
new string[150];
new pNome[MAX_PLAYER_NAME];
GetPlayerPos(playerid, P[0], P[1], P[2]);
LipeStronda = CreateVehicle(562, P[0], P[1], P[2], 40.5183, 59,59, -1);
GetPlayerName(playerid, pNome, sizeof(pNome));
format(string, sizeof(string), "{FC0000}%s {FFFFFF}Acabou de comprar um {FC0000}carro {FFFFFF}, nome do carro: {FC0000}Elegy", pNome);
SendClientMessageToAll(-1, string);
AddVehicleComponent(LipeStronda, 1010);
AddVehicleComponent(LipeStronda, 1037);
AddVehicleComponent(LipeStronda, 1036);
AddVehicleComponent(LipeStronda, 1035);
AddVehicleComponent(LipeStronda, 1149);
AddVehicleComponent(LipeStronda, 1147);
ChangeVehiclePaintjob(LipeStronda, 2);
PutPlayerInVehicle(playerid, LipeStronda, 0);
}
case 1:
{
new Float:P[3];
new string[150];
new pNome[MAX_PLAYER_NAME];
GetPlayerPos(playerid, P[0], P[1], P[2]);
LipeStronda = CreateVehicle(560, P[0], P[1], P[2], 40.5183, 59,59, -1);
GetPlayerName(playerid, pNome, sizeof(pNome));
format(string, sizeof(string), "{FC0000}%s {FFFFFF}Acabou de comprar um {FC0000}carro {FFFFFF}, nome do carro: {FC0000}Sultan", pNome);
SendClientMessageToAll(-1, string);
AddVehicleComponent(LipeStronda, 1026);
AddVehicleComponent(LipeStronda, 1028);
AddVehicleComponent(LipeStronda, 1010);
AddVehicleComponent(LipeStronda, 1030);
AddVehicleComponent(LipeStronda, 1032);
AddVehicleComponent(LipeStronda, 1139);
AddVehicleComponent(LipeStronda, 1140);
ChangeVehiclePaintjob(LipeStronda, 1);
PutPlayerInVehicle(playerid, LipeStronda, 0);
}
case 2:
{
new Float:P[3];
new string[150];
new pNome[MAX_PLAYER_NAME];
GetPlayerPos(playerid, P[0], P[1], P[2]);
LipeStronda = CreateVehicle(559, P[0], P[1], P[2], 40.5183, 59,59, -1);
GetPlayerName(playerid, pNome, sizeof(pNome));
format(string, sizeof(string), "{FC0000}%s {FFFFFF}Acabou de comprar um {FC0000}carro {FFFFFF}, nome do carro: {FC0000}Jester", pNome);
SendClientMessageToAll(-1, string);
AddVehicleComponent(LipeStronda, 1158);
AddVehicleComponent(LipeStronda, 1010);
AddVehicleComponent(LipeStronda, 1159);
AddVehicleComponent(LipeStronda, 1160);
AddVehicleComponent(LipeStronda, 1162);
AddVehicleComponent(LipeStronda, 1068);
AddVehicleComponent(LipeStronda, 1066);
ChangeVehiclePaintjob(LipeStronda, 2);
PutPlayerInVehicle(playerid, LipeStronda, 0);
}
case 3:
{
new Float:P[3];
new string[150];
new pNome[MAX_PLAYER_NAME];
GetPlayerPos(playerid, P[0], P[1], P[2]);
LipeStronda = CreateVehicle(558, P[0], P[1], P[2], 40.5183, 59,59, -1);
GetPlayerName(playerid, pNome, sizeof(pNome));
format(string, sizeof(string), "{FC0000}%s {FFFFFF}Acabou de comprar um {FC0000}carro {FFFFFF}, nome do carro: {FC0000}Uranus", pNome);
SendClientMessageToAll(-1, string);
AddVehicleComponent(LipeStronda, 1088);
AddVehicleComponent(LipeStronda, 1089);
AddVehicleComponent(LipeStronda, 1010);
AddVehicleComponent(LipeStronda, 1090);
AddVehicleComponent(LipeStronda, 1092);
AddVehicleComponent(LipeStronda, 1093);
AddVehicleComponent(LipeStronda, 1066);
AddVehicleComponent(LipeStronda, 1165);
AddVehicleComponent(LipeStronda, 1168);
AddVehicleComponent(LipeStronda, 1164);
ChangeVehiclePaintjob(LipeStronda, 1);
PutPlayerInVehicle(playerid, LipeStronda, 0);
}
}
}
return 1;
}
return 1;
}