help pls
#1

Basically i've found a filterscript and i've tried it but thing is that i can't see the checkpoint in my 24/7 interior nor i see any message that pops in or out. Can someone help me out pls

pawn Код:
//Includes
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <streamer>
//COLOR Defines
#define COLOR_GROVE 0xADFF2FAA
#define COLOR_MAFIA 0x636352AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_RED 0xFF0000AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x0000BBAAf
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_VIOLET 0x9955DEEE
#define COLOR_LIGHTRED 0xFF99AADD
#define COLOR_SEAGREEN 0x00EEADDF
#define COLOR_GRAYWHITE 0xEEEEFFC4
#define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
#define COLOR_GREENISHGOLD 0xCCFFDD56
#define COLOR_LIGHTBLUEGREEN 0x0FFDD349
#define COLOR_NEUTRALBLUE 0xABCDEF01
#define COLOR_LIGHTCYAN 0xAAFFCC33
#define COLOR_LEMON 0xDDDD2357
#define COLOR_MEDIUMBLUE 0x63AFF00A
#define COLOR_NEUTRAL 0xABCDEF97
#define COLOR_BLACK 0x00000000
#define COLOR_NEUTRALGREEN 0x81CFAB00
#define COLOR_DARKGREEN 0x12900BBF
#define COLOR_LIGHTGREEN 0x24FF0AB9
#define COLOR_DARKBLUE 0x300FFAAB
#define COLOR_BLUEGREEN 0x46BBAA00
#define COLOR_PINK 0xFF66FFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_PURPLE 0x800080AA
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_RED1 0xFF0000AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BROWN 0x993300AA
#define COLOR_CYAN 0x99FFFFAA
#define COLOR_TAN 0xFFFFCCAA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_KHAKI 0x999900AA
#define COLOR_LIME 0x99FF00AA
#define COLOR_SYSTEM 0xEFEFF7AA
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_DEADCONNECT 0x808080AA
#define COLOR_GRAD1 0xB4B5B7FF
#define COL_WHITE "{FFFFFF}"
#define COL_RED "{F81414}"
#define COL_GREEN "{00FF22}"
#define COL_LIGHTBLUE "{00CED1}"
//New's
new CP_247;
new CP_In247;
new IsInside247[MAX_PLAYERS];

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Basic Robbery System Loaded");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    print("\n--------------------------------------");
    print(" Basic Robbery System Unloaded");
    print("--------------------------------------\n");
    return 1;
}
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == CP_247)
    {
    SetPlayerPos(playerid, -59.19220, -110.08820, 1003.18982);
    IsInside247[playerid] = 1;
    SetPlayerInterior(playerid, 4);
    SendClientMessage(playerid,COLOR_LIGHTGREEN,"Welcome to the 24/7 Shop . Type /robstore to rob the store");
    }
    if(checkpointid == CP_In247)
    {
    SetPlayerPos(playerid, 1928.57690, -1776.29700, 13.38460);
    SetPlayerInterior(playerid,0);
    IsInside247[playerid] = 0;
    SendClientMessage(playerid,COLOR_LIGHTGREEN,"You left the store");
    }
    return 1;
}

RandomEx(min, max)
{
    return random(max - min) + min;
}
//==============================================================================
// Robbery Command
//==============================================================================
CMD:robstore(playerid,params[])
{
//COPS /ARMY /CIA shouldn't be allowed to commit crimes like a heist .
// Undefine the line below and change TEAM_COP to your team variable
//if(gTeam[playerid] == TEAM_COP) return SendClientMessage(playerid,COLOR_RED,"{00FFFF}[SERVER]{EEEEEE}Law Enforcement Officers cannot commit a robbery crime");
    new pName[MAX_PLAYER_NAME];
    new string[128];
    GetPlayerName(playerid,pName,sizeof(pName));
    if(GetPlayerWantedLevel(playerid >=1)) return SendClientMessage(playerid,COLOR_RED,"{00FFFF}[SERVER]{EEEEEE}You cant rob a store with a wanted level.");
    if(IsInside247[playerid] == 1)
    {
    new StoreMoney = RandomEx( 10000,30000);
    format(string,sizeof(string),"{FF0000}[ROBBERY]{EEEEEE}%s has robbed the 24/7 store of Fort Carson and got %d$",pName,StoreMoney);
    SendClientMessageToAll(COLOR_LIGHTGREEN,string);
    GameTextForPlayer(playerid,"~y~24/7Store~n~~r~ROBBED",3000,5);
    format(string,sizeof(string),"{FF0000}[ROBBERY]{EEEEEE}You've successfully robbed the 24/7 store and got $%d",pName,StoreMoney);
    SendClientMessage(playerid,COLOR_LIGHTGREEN,string);
    SendClientMessage(playerid,COLOR_RED,"{00FFFF}[SERVER]{EEEEEE}You have gained 3 stars for robbing the 24/7 store");
    GivePlayerMoney(playerid,StoreMoney);
    SetPlayerWantedLevel(playerid,3);
    }
    else SendClientMessage(playerid,COLOR_RED,"{00FFFF}[SERVER]{EEEEEE}You need to be inside the 247/7 store");
    return 1;
}
Reply
#2

That's because you didn't create a checkpoint at 'OnFilterScriptInit'.

Add this to your OnFilterScriptInit:
Код:
CreateDynamicCP(-59.19220, -110.08820, 1003.18982,1,_,4,_,_);
CreateDynamicCP( 1928.57690, -1776.29700, 13.38460,1,_,0,_,_);
This is just an example, change the X,Y,Z otherwise it'll keep setting your position.
Reply
#3

pawn Код:
public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print("Robbery System Loaded");
    print("--------------------------------------\n");
    CP_247 = CreateDynamicCP(-61.9874, -107.6419, 1003.0136,3.0,4,-1,100.0);
    CP_In247 = CreateDynamicCP(1928.57690, -1776.29700, 13.38460,3.0,0,-1,100.0);
    return 1;
}
pawn Код:
filterscripts\SimpleRobSystem.pwn(80) : warning 213: tag mismatch
filterscripts\SimpleRobSystem.pwn(81) : warning 213: tag mismatch
Can you help me pls
Reply
#4

Its a warning and its this
pawn Код:
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
Reply
#5

Quote:
Originally Posted by rockhopper
Посмотреть сообщение
Its a warning and its this
pawn Код:
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
I've did use that
Reply
#6

Quote:

CreateDynamicCP(1928.57690, -1776.29700, 13.38460,3.0,0,-1,-1,100.0);

Nope You have only 7 params Add -1 before -1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)