#1

I go in game use /startpaint, I get the texts but not the checkpoints any idea?
Код:
CMD:startpaint(playerid,params[])
{
	SetPlayerHealth(playerid, 100);
    SendClientMessage(playerid, COLOR_RED, "Follow the checkpoints to continue painting.");
    AddPlayerClass(0,210.7901,-237.0084,1.9033,305.6858,0,0,0,0,0,0); //
	AddPlayerClass(0,201.8219,-228.8852,1.7786,17.2335,0,0,0,0,0,0); //
	AddPlayerClass(0,213.2698,-225.0712,1.7786,294.6407,0,0,0,0,0,0); //
	AddPlayerClass(0,221.7485,-234.4338,1.7786,228.0019,0,0,0,0,0,0); //
	AddPlayerClass(0,214.8299,-236.6843,1.5781,283.2274,0,0,0,0,0,0); //
	SendClientMessage(playerid, COLOR_RED, "You have started working.");
    }
    return 1;
}
Reply
#2

Because you are not setting a checkpoint.
Reply
#3

Quote:
Originally Posted by GoldenLion
Посмотреть сообщение
Because you are not setting a checkpoint.
I set the checkpoint now, but can you send me the format on how to add the timer and the size of it?
Reply
#4

You don't add checkpoints using AddPlayerClass ... If only checkpoint sequences were that easy to create... You need to keep track of the player's current progress through the sequence. Each time the player enters a checkpoint the progress is incremented and a new checkpoint is shown based on that value. Look up a tutorial on how to make a race. It's a similar process. I don't fancy explaining the whole thing here.
Reply
#5

What about this?
C:\Users\Astro\Desktop\Server1\gamemodes\hi.pwn(17 2) : warning 202: number of arguments does not match definition
C:\Users\Astro\Desktop\Server1\gamemodes\hi.pwn(17 2) : warning 202: number of arguments does not match definition
C:\Users\Astro\Desktop\Server1\gamemodes\hi.pwn(17 2) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Warnings.

Код:
CMD:startpaint(playerid,params[])
{
	SetPlayerHealth(playerid, 50);
    SendClientMessage(playerid, COLOR_RED, "Follow the checkpoints to continue painting.");
	SendClientMessage(playerid, COLOR_RED, "You now have started painting.");
    SetPlayerCheckpoint(playerid, 1, 113,218.8890,-232.3192,1.7786,270.4967,  2);
    return 1;
}
Reply
#6

PHP код:
CMD:startpaint(playerid,params[])
{
    
SetPlayerHealth(playerid50);
    
SendClientMessage(playeridCOLOR_RED"Follow the checkpoints to continue painting.");
    
SendClientMessage(playeridCOLOR_RED"You now have started painting.");
    
SetPlayerCheckpoint(playerid218.8890, -232.31921.7786,  2);
    return 
1;

Код:
SetPlayerCheckpoint(playerid, X, Y, Z, size);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)