if(strcmp(cmdtext, "/moveobject", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) // Pour les factions, 1 = police dans LARP/GFRP
{
if(PlayerToPoint(playerid, 100, x,y,z) // 100 = Nombre au mètre² (périmètre) x,y,z à remplacer par tes coordonés.
{
new string[50];
new movetime = MoveObject(obj, 627.846924, 589.675110, 14.455614, 2.00);
format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime);
SendClientMessage(playerid, 0xFF000000, string);
return 1;
}
else // Si il 'nest pas dans le périmètre
{
SendClientMessage(playerid, 0xFF000000,"Vous n'êtes pas dans le périmètre de la grille ! ");
}
}
else // Si il n'est pas dans la faction 1
{
SendClientMessage(playerid, 0xFF000000,"Vous ne faite pas partit dans la faction 1 ! ");
}
return 1;
}
Je l'ai fait sur le fofo à la va vite, possibilité de soucis ^^