Criando Sistema Race Aereo !! Help !! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: Criando Sistema Race Aereo !! Help !! (
/showthread.php?tid=282672)
Criando Sistema Race Aereo !! Help !! -
Joгo Jones - 12.09.2011
Ola amigos gostaria de saber como eu faria Para criar um Sistema de Race Aereo Com Checkpoints.
Agradeзo Desde Ja.
Re: Criando Sistema Race Aereo !! Help !! -
Allan Kardec - 12.09.2011
https://sampwiki.blast.hk/wiki/SetPlayerRaceCheckpoint
https://sampforum.blast.hk/showthread.php?tid=198984
Parвmetros:
pawn Код:
(playerid, tipo, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size)
Re: Criando Sistema Race Aereo !! Help !! -
WLSF - 12.09.2011
pawn Код:
if(strcmp(cmdtext,"/race", true) == 0)
{
new carro = CreateVehicle(411,1425.1904,-2501.3125,13.2600,270.3486,1,1,60000); // race
PutPlayerInVehicle(playerid,carro, 0);
SetPVarInt(playerid,"vars",SetPlayerCheckpoint(playerid,1499.6726,-2493.3113,13.2583,10));
SendClientMessage(playerid,-1,"A corrida irб comeзar");
GameTextForPlayer(playerid,"Go ~b~Go ~g~Go",5000,1);
TogglePlayerControllable(playerid, 1);
return 1;
}
// OnPlayerEnterCheckpoint
if(GetPVarInt(playerid,"vars"))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1613.7256,-2493.1897,13.2599,10);
return 1;
}
Fiz isso aqui rapidinho, apenas para vocк se basear e melhorar. Boa sorte
qualquer dъvida sу perguntar.
Re: Criando Sistema Race Aereo !! Help !! -
Allan Kardec - 12.09.2011
Quote:
Originally Posted by Willian_Luigi
pawn Код:
if(strcmp(cmdtext,"/race", true) == 0) { new carro = CreateVehicle(411,1425.1904,-2501.3125,13.2600,270.3486,1,1,60000); // race PutPlayerInVehicle(playerid,carro, 0); SetPVarInt(playerid,"vars",SetPlayerCheckpoint(playerid,1499.6726,-2493.3113,13.2583,10)); SendClientMessage(playerid,-1,"A corrida irб comeзar"); GameTextForPlayer(playerid,"Go ~b~Go ~g~Go",5000,1); TogglePlayerControllable(playerid, 1); return 1; }
Fiz isso aqui rapidinho, apenas para vocк se basear e melhorar. Boa sorte qualquer dъvida sу perguntar.
|
й mais viбvel utilizar SetPlayerRaceCheckpoint, jб й apropriado para os casos de corridas