05.08.2012, 05:46
(
Последний раз редактировалось Team_PRO; 11.08.2012 в 10:02.
)
REMOVED
// """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
//"""""""""""""""""""""""Fix Flip Nos By Rudy_"""""""""""""""""""""
//""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
#define FILTERSCRIPT
#include <a_samp>
#define RED 0xAA3333AA
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("Fix/Flip/Repair by Edge");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Cops And Robbers");
print("----------------------------------\n");
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/frn", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid,-1,"You are not driving in any vehicle!");
new Float:vHealth,cost;
for(new i = 0; i < (1000 - (GetVehicleHealth(GetPlayerVehicleID(playerid),vHealth))); i += 3)
{
if(i - 1000 == 0) break;
cost = i;
}
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
if(GetPlayerMoney(playerid) < cost) return SendClientMessage(playerid,RED,"You don't have enough money to fix your vehicle.");
SetVehicleHealth(GetPlayerVehicleID(playerid),1000);
SendClientMessage(playerid,-1,"You have fixed your vehicle!");
GivePlayerMoney(playerid,GetPlayerMoney(playerid) - cost);
new veh;
new Float:angle, Float:fVx, Float:fVy, Float:fVz;
veh = GetPlayerVehicleID(playerid);
GetVehicleVelocity(veh,fVx,fVy,fVz);
GetVehicleZAngle(veh,angle);
SetVehicleZAngle(veh,angle);
GetVehicleVelocity(veh, fVx,fVy,fVz);
SendClientMessage(playerid,-1,"Your vehicle has been flipped and fixed nos added");
return 1;
}
}
return 0;
}
// """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
//"""""""""""""""""""""""Fix Flip Nos By Rudy_"""""""""""""""""""""
//""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
#define FILTERSCRIPT
#include <a_samp>
#define RED 0xAA3333AA
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("Fix/Flip/Repair by Rudy_");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/frn", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid,-1,"You are not driving in any vehicle!");
new Float:vHealth,cost;
for(new i = 0; i < (1000 - (GetVehicleHealth(GetPlayerVehicleID(playerid),vHealth))); i += 3)
{
if(i - 1000 == 0) break;
cost = i;
}
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
if(GetPlayerMoney(playerid) < cost) return SendClientMessage(playerid,RED,"You don't have enough money to fix your vehicle.");
SetVehicleHealth(GetPlayerVehicleID(playerid),1000);
SendClientMessage(playerid,-1,"You have fixed your vehicle!");
GivePlayerMoney(playerid,GetPlayerMoney(playerid) - cost);
new veh;
new Float:angle, Float:fVx, Float:fVy, Float:fVz;
veh = GetPlayerVehicleID(playerid);
GetVehicleVelocity(veh,fVx,fVy,fVz);
GetVehicleZAngle(veh,angle);
SetVehicleZAngle(veh,angle);
GetVehicleVelocity(veh, fVx,fVy,fVz);
SendClientMessage(playerid,-1,"Your vehicle has been flipped - fixed nos added");
return 1;
}
}
return 0;
}