how to set checkpoint to everyone?
#1

how can i set checkpoint to everyone in the server who comes online?
Reply
#2

OnPlayerConnect
pawn Код:
SetPlayerCheckpoint(playerid,Float:x,Float:y,Float:z,Float:size);
Wasn't that hard, was it?!
Reply
#3

i have it with timer...
Reply
#4

Quote:
Originally Posted by ZzZzZ
i have it with timer...
You have what on a timer? The checkpoint?

pawn Код:
for(new i=0; i<=MAX_PLAYERS; i++)SetPlayerCheckpoint(i,Float:x,Float:y,Float:z,Float:size);
Use this if you want to make it visible for every player.

Over script:
pawn Код:
new bool:CheckpointActive=false;
In timer:
pawn Код:
CheckpointActive=true;
OnPlayerConnect:
pawn Код:
if(CheckpointActive==true)SetPlayerCheckpoint(i,Float:x,Float:y,Float:z,Float:size);
When destroying the Checkpoint:
pawn Код:
CheckpointActive=false;
Cheerz
Reply
#5

pawn Код:
public OnPlayerConnect(playerid)
{
  SetTimerEx("SetCP", 1000, false, "d", playerid);
}

forward SetCP(playerid);
public SetCP(playerid)
{
  SetPlayerCheckpoint(playerid,Float:x,Float:y,Float:z,Float:size);
}
Reply
#6

but i want like...it would be at same time to everyone,not then when player logs in,or that works like that?
Reply
#7

Then make it into a cmd or something
Reply
#8

whatca mean?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)