07.12.2012, 20:12
This is my code
How to make it goes auto maticly
pawn Код:
CMD:verplaats(playerid, params[])
{
new string[50],movetime ;
if(Objctmoved==0)
{
movetime = MoveObject(koe, 1993.5585, 206.7081, 27.4299, 2.00);
Objctmoved=1;
}else if(Objctmoved==1){
movetime = MoveObject(koe, 1984.1281, 228.6638, 27.6008, 2.00);//Other Possition
Objctmoved=2;
}else if(Objctmoved==2){
movetime = MoveObject(koe, 1967.7006, 211.0770, 28.9272, 2.00);
Objctmoved=3;
}else if(Objctmoved==3){
movetime = MoveObject(koe, 1931.3905, 189.9864, 34.6937, 2.00);
Objctmoved=4;
}else if(Objctmoved==4){
movetime = MoveObject(koe, 1920.3376, 206.2707, 31.9666, 2.00);
Objctmoved=5;
}else if(Objctmoved==5){
movetime = MoveObject(koe, 1918.2622, 231.7208, 28.8713, 2.00);
Objctmoved=0;//start again
}
format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime);
SendClientMessage(playerid, 0xFF000000, string);
}
How to make it goes auto maticly