29.08.2015, 04:40
ScreenShots
damn Im so lazy to upload screenshots
But I'm very sure you'll like it
Teleport To the Black Market
/blackmarket
damn Im so lazy to upload screenshots
But I'm very sure you'll like it
Teleport To the Black Market
/blackmarket
PHP код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define green 0x33FF33AA
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" ROB & sell car By Dark_Light ");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
Create3DTextLabel("rob a car and\n sell it here", green, -1933.1218, 562.3784, 35.8630, 50.0, 0, 0);
CreateObject(11326, -1948.19324, 558.27039, 35.81870, 0.00000, 0.00000, 0.00000);
return 1;
}
#else
#endif
public OnPlayerConnect(playerid)
{
Create3DTextLabel("rob a car and\n sell it here", green, -1933.1218, 562.3784, 35.8630, 50.0, 0, 0);
CreateObject(11326, -1948.19324, 558.27039, 35.81870, 0.00000, 0.00000, 0.00000);
SetPlayerCheckpoint(playerid,-1933.1218, 562.3784, 35.8630,5);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
new rcash = random(10000) ,string[128],rwanted = random(6);
if(IsPlayerInRangeOfPoint(playerid,5,-1933.1218, 562.3784, 35.8630)){
} else return SendClientMessage(playerid,-1,"Error: Lblasa machi hia | enta be3id 3ani lmakan");
if (IsPlayerInAnyVehicle(playerid)) {
GivePlayerMoney(playerid, rcash);
Create3DTextLabel("rob a car and\n sell it here", green, -1933.1218, 562.3784, 35.8630, 0.0, 0, 0);
CreateObject(11326, -1948.19324, 558.27039, 35.81870, 0.00000, 0.00000, 0.00000);
format(string,sizeof(string),"You have Got (%d$)", rcash);
SendClientMessage(playerid,green,string);
SendClientMessage(playerid,-1,"Error: You are not in a vehicle");
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) +rwanted);
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid),10);
} else return SendClientMessage(playerid,-1,"Error: You are not in a vehicle");
return 1;
}
public OnPlayerCommandText(playerid,cmdtext[])
{
if(!strcmp(cmdtext,"/blackmarket",true))
{
SetPlayerPos(playerid, -1933.1465,580.0641,35.8030);
return 1;
}
return 0;
}