Checkpoint isn't appearing
#1

So guys, you know this is my filterscript DeathMatch Arena.... by the way i tried to add to my server, and when i uploaded it, there isn't any checkpoint showing, just mapicon... any help? here the code:


PHP код:
/*
                    Death Match Arena FilterScript
                             By: RyderX
*/
#include <a_samp>
#include <zcmd>
#include <a_actor>
#define FILTERSCRIPT
#define DIALOG_DM 15
new bool:onCheck[MAX_PLAYERS];
new 
DM[MAX_PLAYERS];
public 
OnFilterScriptInit()
{
CreateObject(1459849.76630, -1386.3378913.26280,   0.000000.000000.00000);
CreateObject(1459852.28003, -1384.8975813.22480,   0.400000.1600030.09720);
CreateObject(6296858.57196, -1366.8546114.83800,   0.000000.0000090.00000);
CreateObject(967866.55573, -1384.3553512.61930,   0.000000.00000270.00000);
CreateObject(3472846.23114, -1389.4188212.61930,   0.000000.000000.00000);
CreateObject(3472869.02191, -1358.3783012.61930,   0.000000.000000.00000);
CreateObject(3472869.64117, -1389.4252912.89570,   0.000000.000000.00000);
CreateObject(3472850.69269, -1362.9959712.88340,   0.000000.000000.00000);
CreateObject(3461865.26288, -1373.2904113.88340,   0.000000.000000.00000);
CreateObject(3461851.87781, -1373.3397213.88340,   0.000000.000000.00000);
CreateActor(177862.037475, -1372.08227513.546875175.936630);//Here you can changed the skinid of the Actor
CreateActor(176855.092590, -1371.91259713.628181185.650085);//here too.(0 <> 311)
Create3DTextLabel("Death Match - Arenas"0x00FF00FF858.4816,-1371.1626,13.546940.000);
Create3DTextLabel("Grenade DM"0x00FF00FF, -1401.8314,107.3241,1032.273440.000);
Create3DTextLabel("Sawn-Off DM"0x00FF00FF1412.6399,-1.7875,1000.924440.000);
Create3DTextLabel("Deset Eagle DM"0x00FF00FF1302.5199,-1.7875,1001.028340.000);
Create3DTextLabel("Shotgun & Deagle DM"0x00FF00FF288.745971,169.350997,1007.17187540.000);
return 
1;
}
public 
OnPlayerConnect(playerid)
{
SetPlayerMapIcon(playerid23, -2172.2852,251.8176,35.3387232MAPICON_LOCAL);
return 
1;
}
public 
OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, -2172.2852,251.8176,35.33872.0);
onCheck[playerid] = true;
return 
1;
}
public 
OnPlayerEnterCheckpoint(playerid)
{
    if(
onCheck[playerid]) // if it's true
    
{
        
DisablePlayerCheckpoint(playerid);
        
ShowPlayerDialog(playeridDIALOG_DMDIALOG_STYLE_LIST"{00ff00}Death Match - Arenas""{00ffff}-DeathMatch Stadium(All in one)\n{ff0000}-Sawn-off DeathMatch\n{ff9900}-Desert Eagle DeathMatch\n{ffff00}-Shotgun & Deagle DeathMatch\n{ff3399}-Grenade DeathMatch\n""Select""Close");
        
onCheck[playerid] = false;
    }
    return 
1;
}
CMD:tp(playerid,params[])
{
SetPlayerPos(playerid, -2172.2852,251.8176,35.3387);
return 
1;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == DIALOG_DM)
    {
        if(
response// If they clicked 'Select' or double-clicked a weapon
        
{
            switch(
listitem)
            {
                case 
0:
                {
                new 
string[128]; new name[MAX_PLAYER_NAME];
                
GetPlayerName(playeridnamesizeof(name));
                
SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);
                
SetPlayerInterior(playerid10);
                
DM[playerid] = 1;
                
GivePlayerWeapon(playerid2450000);
                
GivePlayerWeapon(playerid2650000);
                
GivePlayerWeapon(playerid2850000);
                
GivePlayerWeapon(playerid3450000);
                
GivePlayerWeapon(playerid3150000);
                
GivePlayerWeapon(playerid1650000);
                
SetPlayerWantedLevel(playerid0);
                
format(stringsizeof(string), "[ARENA] {FFFFFF}%s has joined Death Match Stadium!",name);
                
SendClientMessageToAll(0x00ECECFFstring);
                
SendClientMessage(playerid0x00ECECFF"[ARENA] {FFFFFF}You've joined DM arena, Type /leavedm if you want to leave it.");
                }
                case 
1:
                {
                new 
string[128]; new name[MAX_PLAYER_NAME];
                
GetPlayerName(playeridnamesizeof(name));
                
SetPlayerPos(playerid1412.639892,-1.787510,1000.924377);
                
SetPlayerInterior(playerid1);
                
DM[playerid] = 1;
                
GivePlayerWeapon(playerid2650000);
                
SetPlayerWantedLevel(playerid,0);
                
format(stringsizeof(string), "[ARENA] {FFFFFF}%s has joined Sawn-off DeathMatch!",name);
                
SendClientMessageToAll(0x00ECECFFstring);
                
SendClientMessage(playerid0x00ECECFF"[ARENA] {FFFFFF}You've joined DM arena, Type /leavedm if you want to leave it.");
                }
                case 
2:
                {
                new 
string[128]; new name[MAX_PLAYER_NAME];
                
GetPlayerName(playeridnamesizeof(name));
                
SetPlayerPos(playerid,1302.519897,-1.787510,1001.028259);
                
SetPlayerInterior(playerid18);
                
DM[playerid] = 1;
                
GivePlayerWeapon(playerid2450000);
                
SetPlayerWantedLevel(playerid,0);
                
format(stringsizeof(string), "[ARENA] {FFFFFF}%s has joined Desert-Eagle DeathMatch!",name);
                
SendClientMessageToAll(0x00ECECFFstring);
                
SendClientMessage(playerid0x00ECECFF"[ARENA] {FFFFFF}You've joined DM arena, Type /leavedm if you want to leave it.");
                }
                case 
3:
                {
                new 
string[128]; new name[MAX_PLAYER_NAME];
                
GetPlayerName(playeridnamesizeof(name));
                
SetPlayerPos(playerid,288.745971,169.350997,1007.171875);
                
SetPlayerVirtualWorld(playerid3);
                
DM[playerid] = 1;
                
GivePlayerWeapon(playerid2450000);
                
GivePlayerWeapon(playerid2550000);
                
SetPlayerWantedLevel(playerid,0);
                
format(stringsizeof(string), "[ARENA] {FFFFFF}%s has joined Desert-Eagle & ShotGun DeathMatch!",name);
                
SendClientMessageToAll(0x00ECECFFstring);
                
SendClientMessage(playerid0x00ECECFF"[ARENA] {FFFFFF}You've joined DM arena, Type /leavedm if you want to leave it.");
                }
                case 
4:
                {
                new 
string[128]; new name[MAX_PLAYER_NAME];
                
GetPlayerName(playeridnamesizeof(name));
                
SetPlayerPos(playerid, -1401.829956,107.051300,1032.273437);
                
SetPlayerInterior(playerid1);
                
DM[playerid] = 1;
                
GivePlayerWeapon(playerid1650000);
                
SetPlayerWantedLevel(playerid,0);
                
format(stringsizeof(string), "[ARENA] {FFFFFF}%s has joined Grenades DeathMatch!",name);
                
SendClientMessageToAll(0x00ECECFFstring);
                
SendClientMessage(playerid0x00ECECFF"[ARENA] {FFFFFF}You've joined DM arena, Type /leavedm if you want to leave it.");
                }
            }
        }
        return 
1;
    }
    return 
0;
}
CMD:leavedm(playeridparams[])
{
    new 
string[128]; new name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    if(
DM[playerid] == 0)
    {
        
SendClientMessage(playerid0x00ECECFF"[ARENA] {FFFFFF}You are not at the DM arena!");
        return 
1;
    }
    else if(
DM[playerid] == 1)
    {
        
DM[playerid] = 0;
        
SetPlayerVirtualWorld(playerid0);
        
SetPlayerInterior(playerid0);
        
SendClientMessage(playerid0x00ECECFF"[ARENA] {FFFFFF}You have left the DM arena!");
        
format(stringsizeof(string), "[ARENA] {FFFFFF}%s has left Death Match Arena!",name);
        
SendClientMessageToAll(0x00ECECFFstring);
        
SpawnPlayer(playerid);
        return 
1;
    }
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    if(
DM[playerid] == 1)
    {
    new 
string[128]; new name[MAX_PLAYER_NAME]; new name2[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    
GetPlayerName(killeridname2sizeof(name2));
    
format(stringsizeof(string)," %s(ID:%i) Fucked and pwn3d %s(ID:%i)",nameplayeridname2killerid);
    
SendClientMessageToAll(0xF568F48Fstring);
    }
    return 
1;
}
public 
OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    if(
DM[playerid] == 1)
    {
    if(
issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
    {
        new 
string[64];
        new 
name[MAX_PLAYER_NAME];
        new 
name2[MAX_PLAYER_NAME];
        
GetPlayerName(playeridnamesizeof(name));
        
GetPlayerName(issueridname2sizeof(name2));
        
SetPlayerHealth(playerid0.0);
        
format(stringsizeof(string), "[HEADSHOT]: {F27D0C}%s(%i) Has HeadShotted %s(%i) And Received +2 Scores And +20000$"name2issueridnameplayerid);
        
SendClientMessageToAll(0xF490F49Fstring);
        
GameTextForPlayer(playerid,"~r~~r~~r~You were headshotted!",50003); //Sets Gametext to the damage receiver.
        
GameTextForPlayer(issuerid,"~g~~g~~g~Headshot!~r~~r~~r~ +2 score!",50003); //Sets Gametext to the damage issuer.
        
SetPlayerScore(issueridGetPlayerScore(issuerid) + 2); //Gives score to the damage issuer.
        
GivePlayerMoney(issuerid20000);
        
SetPlayerWantedLevel(issuerid6);
        new
            
infoString[128],
            
weaponName[24],
            
victimName[MAX_PLAYER_NAME],
            
attackerName[MAX_PLAYER_NAME];
        
GetPlayerName(playeridvictimNamesizeof (victimName));
        
GetPlayerName(issueridattackerNamesizeof (attackerName));
        
GetWeaponName(weaponidweaponNamesizeof (weaponName));
        
format(infoStringsizeof(infoString), "%s has made %.0f damage to %s, weapon: %s"attackerNameamountvictimNameweaponName);
        
SendClientMessageToAll(-1infoString);
    }
    }
    return 
1;

Reply
#2

The checkpoints from your filterscript or from your gamemode?
Reply
#3

Quote:
Originally Posted by KnowNN
Посмотреть сообщение
The checkpoints from your filterscript or from your gamemode?
FilterScript, im using this as a Filterscript in my server.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)