Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- main();
- new pobjectid = -1;
- new parrayindex = 0;
- new pobjectarray[56] =
- {
- 1374,
- 1383,
- 1386,
- 16328,
- 16329,
- 16330,
- 16331,
- 16332,
- 16333,
- 1382,
- 1383,
- 1384,
- 1385,
- 1386,
- 1387,
- 1388,
- 1389,
- 1390,
- 1391,
- 1392,
- 1393,
- 1394,
- 1395,
- 1396,
- 1397,
- 1398,
- 1399,
- 1400,
- 1401,
- 1402,
- 1403,
- 1404,
- 1405,
- 1406,
- 6010,
- 6034,
- 6033,
- 6013,
- 6014,
- 6015,
- 6016,
- 6017,
- 6018,
- 6019,
- 6020,
- 6021,
- 6022,
- 6023,
- 6024,
- 6025,
- 6026,
- 6027,
- 6028,
- 6030,
- 6031,
- 6032,
- };
- public OnGameModeInit()
- {
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/o", cmdtext, true, 10) == 0)
- {
- if(pobjectid != -1)
- {
- printf("destroy id %d modelid %d", pobjectid, pobjectarray[parrayindex - 1]);
- DestroyObject(pobjectid);
- }
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- pobjectid = CreateObject(pobjectarray[parrayindex], x + 5.0, y + 5.0, z + 4.0, 0, 0, 0);
- printf("id %d modelid %d", pobjectid, pobjectarray[parrayindex]);
- parrayindex++;
- if(parrayindex >= 56)parrayindex = 0;
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment