25.10.2009, 10:01
I want to make objects move for my server using Pawno but i have no idea how to
public OnGameModeInit() { new obj; obj = CreateObject(980,0,0,0,0,0,0); return 1; } public OnPlayerCommandText() { if(strcmp(cmdtext, "/moveobject", true) == 0) { MoveObject(obj, 0, 0, 10, 2.00 ); return 1; } return 0; }
new obj; obj = CreateObject(980,0,0,0,0,0,0); |
under Public ongamemodeinit { new obj; obj = CreateObject(980,-746.1996, -2123.5566, 25.2215, 0, 0, 0); }
Under public OnPlayerCommandText(playerid, cmdtext[]) if(strcmp(cmdtext, "/moveobject", true) == 0) { MoveObject(980, -800.548828125, -2141.3171386719, 24.819633483887, 500 ); return 1; }
Originally Posted by jurtes
so for excample ''superduper'' instead of obj if im wrong i have no idea what ur saying xD
|