03.03.2013, 17:56
That is my FS and look at the line where is /exitpb:
// --------------------------------
// Simple Paintball Script created by DooM
// --------------------------------
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
/* --Add these lines in your GM if you want to see the icon and text label
CreatePickup(1314, 1, 1310.3346,-1367.9858,13.5434,0); // Paintball Icon
Create3DTextLabel("Paintball \n Use /enterpb to join!",COLOR_DBLUE, 1310.3346,-1367.9858,13.5434, 20, 0,1); // text label
*/
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" [FS]RC Battlefield Paintball by DooM ");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" [FS]RC Battlefield Paintball by DooM ");
print("----------------------------------\n");
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/enterpb", cmdtext, true) == 0)
{
if(!IsPlayerInRangeOfPoint(playerid, 10.0, 1310.1757, -1367.2603, 13.5262)) return SendClientMessage(playerid,0xAA3333AA,"You are not at Paintball");
{
SetPlayerPos(playerid,-972.4957,1060.9830,1345.6690); // RC Battlefield Arena cords
SetPlayerInterior(playerid,10);
GivePlayerWeapon(playerid,24,99999); // DEAGLE
GivePlayerWeapon(playerid,27,99999); // SPAS12
SendClientMessage(playerid,0x2641FEAA,"You have joined paintball");
}
return 1;
}
if (strcmp("/exitpb", cmdtext, true) == 0)
{
if(!IsPlayerInRangeOfPoint(playerid, 1000.0,-972.4957,1060.9830,1345.6690)) return SendClientMessage(playerid,0xAA3333AA,"You are not in Paintball Arena");
{
SetPlayerPos(playerid, 1310.1757, -1367.2603, 13.5262);
SetPlayerInterior(playerid, 0);
ResetPlayerWeapons(playerid, 1);
SendClientMessage(playerid,0xFF6347AA,"You have left paintball");
}
return 1;
}
return 0;
}
// --------------------------------
// Simple Paintball Script created by DooM
// --------------------------------
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
/* --Add these lines in your GM if you want to see the icon and text label
CreatePickup(1314, 1, 1310.3346,-1367.9858,13.5434,0); // Paintball Icon
Create3DTextLabel("Paintball \n Use /enterpb to join!",COLOR_DBLUE, 1310.3346,-1367.9858,13.5434, 20, 0,1); // text label
*/
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" [FS]RC Battlefield Paintball by DooM ");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" [FS]RC Battlefield Paintball by DooM ");
print("----------------------------------\n");
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/enterpb", cmdtext, true) == 0)
{
if(!IsPlayerInRangeOfPoint(playerid, 10.0, 1310.1757, -1367.2603, 13.5262)) return SendClientMessage(playerid,0xAA3333AA,"You are not at Paintball");
{
SetPlayerPos(playerid,-972.4957,1060.9830,1345.6690); // RC Battlefield Arena cords
SetPlayerInterior(playerid,10);
GivePlayerWeapon(playerid,24,99999); // DEAGLE
GivePlayerWeapon(playerid,27,99999); // SPAS12
SendClientMessage(playerid,0x2641FEAA,"You have joined paintball");
}
return 1;
}
if (strcmp("/exitpb", cmdtext, true) == 0)
{
if(!IsPlayerInRangeOfPoint(playerid, 1000.0,-972.4957,1060.9830,1345.6690)) return SendClientMessage(playerid,0xAA3333AA,"You are not in Paintball Arena");
{
SetPlayerPos(playerid, 1310.1757, -1367.2603, 13.5262);
SetPlayerInterior(playerid, 0);
ResetPlayerWeapons(playerid, 1);
SendClientMessage(playerid,0xFF6347AA,"You have left paintball");
}
return 1;
}
return 0;
}