Salut a tous, voila j'ai une petite astuce pour vous:
If PlayerToPoint
cet ligne est une sorte de checkpoint invisible mais on peut en placer a l'infini!
Voici le code:
(a placer avant main)
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
Ensuite placer un :
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
//Faire quelquechose
return 0;
}
Cela marche meme avec les commandes:Exemple
if(PlayerToPoint(100, playerid,1412.64, -1.78751, 1000.924))
if (strcmp(cmdtext, "/exit", true)==0){
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 2200.4299, 1393.8945, 11.0625);
return 1;
}
voila j'espere que cela vous plait!