craeting check point
#1

can sombody create a teleport checkpoint for me?(but with a cmd, like when u enter the dcp it will say:"type /enter to enter the build,and if he is not in the check point and he type /enter it will say:"you are not near the checkpoint")

dynamicCheckPoint Cordis:2212.830078125, 2048.8022460938, 9.6160545349121

when u enter the checkpoint and type /enter it tele u to this cordis:1415.951171,-988.971191,1639.980224
(the same will be when ur back)

and can u explane me how do i make when the player has entered the check point it will show/open him a dialog?(it will automatic show him the dialog)

thx for helpers =D
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint
https://sampwiki.blast.hk/wiki/SetPlayerPos
Reply
#3

You want dynamicCP or normal?
Reply
#4

a pickup better =D
Reply
#5

Quote:
Originally Posted by [ProX]BlueFire
Посмотреть сообщение
a pickup better =D
Tell us why a pickup is better ?
Reply
#6

caz if i will make a cp it will show on the map and it would be a pick up it will look cool and will not show on the map

(pickup will be a doller plz!! xD)
Reply
#7

Quote:
Originally Posted by [ProX]BlueFire
Посмотреть сообщение
caz if i will make a cp it will show on the map and it would be a pick up it will look cool and will not show on the map
You asked for a checkpoint. Change your post.
Reply
#8

Ughs how about CreateDynamicCP?? it wont show on map
Reply
#9

lol k
Reply
#10

You want have a port Pickup?

At the top of the Script:
pawn Код:
new Pickupname[2];
OnGameModeInit
pawn Код:
Pickupname[0]=CreatePickup(1274,23,2212.830078,2048.802246,9.616054534,-1);
Pickupname[1]=CreatePickup(1274,23,1415.951171,-988.971191,1639.980224,-1);
The first number is the Pickupmodel, you can find some Pickupmodels »here«

OnGameModeExit
pawn Код:
DestroyPickup(Pickupname[0]);
DestroyPickup(Pickupname[1]);
OnPlayerPickUpPickup
pawn Код:
if(pickupid==Pickupname[0])
{
    SendClientMessage(playerid,0xAFAFAFFF,"type /enter to enter the build");
    }else if(pickupid==Pickupname[1]){
    SendClientMessage(playerid,0xAFAFAFFF,"type /exit to exitthe build");
}
In your /enter Command
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,5,1415.951171,-988.971191,1639.980224)
    SetPlayerPos(playerid,2212.830078,2048.802246,9.616054534);
else SendClientMessage(playerid,0xAFAFAFFF,"you are not near the checkpoint");
In your /exit Command
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,5,12212.830078,2048.802246,9.616054534)
    SetPlayerPos(playerid,1415.951171,-988.971191,1639.980224);
else SendClientMessage(playerid,0xAFAFAFFF,"you are not near the checkpoint");
And with Dialog, you use only ShowPlayerDialog on OnPlayerPickUpPickup
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)