Hello, Any One Teach Me How To Do That
#1

Hello, Any One Teach Me How To Do That
i Have 11 Checkpoints i Want Show 11 Checkpoints When Type /robing After That Goto Frist 1 i Take it Disapear
And Last One Earn Money 40K/120K
And Get +6 Wanted Star And i Want Defince it To Not Mix With Checkpoints All Server
Thanks,

PHP код:
    SetPlayerCheckpoint(playerid, -1447.2351,1502.1000,1.73666.3);
    
SetPlayerCheckpoint(playerid, -1454.8569,1489.1010,7.10163.0);
    
SetPlayerCheckpoint(playerid, -1428.7382,1490.0945,7.10163.0);
    
SetPlayerCheckpoint(playerid, -1402.7249,1486.1351,7.10163.0);
    
SetPlayerCheckpoint(playerid, -1382.1962,1480.3761,8.56253.0);
    
SetPlayerCheckpoint(playerid, -1376.8267,1492.7152,11.20313.0);
    
SetPlayerCheckpoint(playerid, -1390.7821,1483.1436,1.86723.0);
    
SetPlayerCheckpoint(playerid, -1434.3047,1483.0374,1.86723.0);
    
SetPlayerCheckpoint(playerid, -1424.6499,1491.1248,1.86723.0);
    
SetPlayerCheckpoint(playerid, -1381.9700,1498.3158,8.56253.0);
    
SetPlayerCheckpoint(playerid, -2392.9497,2312.1875,-0.10956.3); 
Reply
#2

I think its almost the same as a "race" maybe you have to search for some race tutorials.
Reply
#3

Wiki its not Helped Me From 11 Checkpoints i cant make it to i dont see 11 checkpoints maked from any one
Reply
#4

Why did you make a new topic..?

I already gave you the answer. Use a streamer.
Reply
#5

i Tell u What Happen
Reply
#6

Please Help
Reply
#7

Create a new variable for player:
Quote:

new CP[MAX_PLAYERS];

This variable will find, how CP will be like next.

Write:
Quote:

CP[playerid] = 0;
SetPlayerCheckpoint(playerid, -1447.2351,1502.1000,1.7366, 6.3);//First CP

on start of robbing.

And then public:

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
        if(CP[playerid] == 0)
        {
        DisablePlayerCheckpoint(playerid);
        SetPlayerCheckpoint(playerid, -1454.8569,1489.1010,7.1016, 3.0);//Second CP
        CP[playerid] = 1;
        }
        else if(CP[playerid] == 1)
        {
        DisablePlayerCheckpoint(playerid);
        SetPlayerCheckpoint(playerid, -1428.7382,1490.0945,7.1016, 3.0);//Third CP
        CP[playerid] = 2;
        }
        else if(CP[playerid] == 2)
        {
        DisablePlayerCheckpoint(playerid);
        SetPlayerCheckpoint(playerid, -1402.7249,1486.1351,7.1016, 3.0);//Fourth CP
        CP[playerid] = 3;
        }

        //Next checkpoints

        else if(CP[playerid] == )//Last CP
        {
        DisablePlayerCheckpoint(playerid);
        CP[playerid] = -1;
        GivePlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+6);
        GivePlayerMoney(playerid, 40000+random(80001));
        }
    return 1;  
}
Reply
#8

See Error

Quote:

C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(27) : error 017: undefined symbol "CP"
C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(27) : warning 215: expression has no effect
C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(27) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(27) : error 029: invalid expression, assumed zero
C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(27) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

This All My Own
Quote:

#include <a_samp>
#include <zcmd>


CMD:robbery(playerid, params[])
{


SendClientMessage(playerid, 0xFF0000, "This text is red.");
SendClientMessage(playerid, 0xFF0000FF, "Wanted Level: 6");
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
if(CP[playerid] == 0)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, -1454.8569,1489.1010,7.1016, 3.0);//Second CP
CP[playerid] = 1;
}
else if(CP[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, -1428.7382,1490.0945,7.1016, 3.0);//Third CP
CP[playerid] = 2;
}
else if(CP[playerid] == 2)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, -1402.7249,1486.1351,7.1016, 3.0);//Fourth CP
CP[playerid] = 3;
}

//Next checkpoints

else if(CP[playerid] == )//Last CP
{
DisablePlayerCheckpoint(playerid);
CP[playerid] = -1;
GivePlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+6);
GivePlayerMoney(playerid, 40000+random(80001));
}
return 1;
}

And this All Checkpoints
Quote:

SetPlayerCheckpoint(playerid, -1447.2351,1502.1000,1.7366, 6.3);
SetPlayerCheckpoint(playerid, -1454.8569,1489.1010,7.1016, 3.0);
SetPlayerCheckpoint(playerid, -1428.7382,1490.0945,7.1016, 3.0);
SetPlayerCheckpoint(playerid, -1402.7249,1486.1351,7.1016, 3.0);
SetPlayerCheckpoint(playerid, -1382.1962,1480.3761,8.5625, 3.0);
SetPlayerCheckpoint(playerid, -1376.8267,1492.7152,11.2031, 3.0);
SetPlayerCheckpoint(playerid, -1390.7821,1483.1436,1.8672, 3.0);
SetPlayerCheckpoint(playerid, -1434.3047,1483.0374,1.8672, 3.0);
SetPlayerCheckpoint(playerid, -1424.6499,1491.1248,1.8672, 3.0);
SetPlayerCheckpoint(playerid, -1381.9700,1498.3158,8.5625, 3.0);
SetPlayerCheckpoint(playerid, -2392.9497,2312.1875,-0.1095, 6.3);

Reply
#9

You never added
pawn Код:
new CP[MAX_PLAYERS];
This forum requires that you wait 120 seconds between posts. Please try again in 24 seconds.
Reply
#10

Error
Quote:

C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(39) : error 029: invalid expression, assumed zero
C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(43) : error 017: undefined symbol "GivePlayerWantedLevel"
C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(46) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

PHP код:
#include <a_samp>
#include <zcmd>
new CP[MAX_PLAYERS];
CMD:robbery(playeridparams[])
{
           
SendClientMessage(playerid0xFF0000"This text is red.");
           
SendClientMessage(playerid0xFF0000FF"Wanted Level: 6");
           return 
1;
}
public 
OnPlayerEnterCheckpoint(playerid)
{
        if(
CP[playerid] == 0)
        {
        
DisablePlayerCheckpoint(playerid);
        
SetPlayerCheckpoint(playerid, -1454.8569,1489.1010,7.10163.0);//Second CP
        
CP[playerid] = 1;
        }
        else if(
CP[playerid] == 1)
        {
        
DisablePlayerCheckpoint(playerid);
        
SetPlayerCheckpoint(playerid, -1428.7382,1490.0945,7.10163.0);//Third CP
        
CP[playerid] = 2;
        }
        else if(
CP[playerid] == 2)
        {
        
DisablePlayerCheckpoint(playerid);
        
SetPlayerCheckpoint(playerid, -1402.7249,1486.1351,7.10163.0);//Fourth CP
        
CP[playerid] = 3;
        }
        
//Next checkpoints
        
else if(CP[playerid] == )//Last CP
        
{
        
DisablePlayerCheckpoint(playerid);
        
CP[playerid] = -1;
        
GivePlayerWantedLevel(playeridGetPlayerWantedLevel(playerid)+6);
        
GivePlayerMoney(playerid40000+random(80001));
        }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)