HELP with Checkpoint??? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HELP with Checkpoint??? (
/showthread.php?tid=249265)
HELP with Checkpoint??? -
Amel_PAtomAXx - 17.04.2011
how to make checkpoint which is visible for all . i was make this :
Код:
if(strcmp(cmdtext,"/garageopen",true)== 0)
{
SetPlayerCheckpoint(playerid, 987.3894,2233.1641,11.0906, 5.0);
return 1;
}
but this is visible only for player who tpye /garageopen ,, i want make command when im type /garageopen ,, that all players see checkpoint on the map ..
sorry for poor english , please help

?
Re: HELP with Checkpoint??? -
Backwardsman97 - 17.04.2011
pawn Код:
if(strcmp(cmdtext,"/garageopen",true)== 0)
{
for(new i; i<MAX_PLAYERS; i++)
SetPlayerCheckpoint(i, 987.3894,2233.1641,11.0906, 5.0);
return 1;
}
Re: HELP with Checkpoint??? -
Amel_PAtomAXx - 17.04.2011
that doesnt work ,, lemme show you full command :
Код:
if(strcmp(cmdtext,"/garageopen",true)== 0)
{
new string[128];
new movetime = MoveObject(garage1, 992.09000000,2220.07000000,8.21000000,1.00000000);
format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime);
SendClientMessageToAll(COLOR_YELLOW,"CAR SHOP IS OPENED.");
for(new i; i<MAX_PLAYERS; i++)
SetPlayerCheckpoint(playerid, 987.3894,2233.1641,11.0906, 5.0);
return 1;
}
help

?
Re: HELP with Checkpoint??? -
Backwardsman97 - 17.04.2011
Well if you change it it surely won't work.