Spawn Objects On Command
#1

Ok this is my code i want to spawn the object listed by typing /fire1
Код:
if(!strcmp(cmdtext, "/fire1", true))
		{
            CreateObject(3594,-1200.96496582,2679.94970703,45.69702530,0.00000000,141.99993896,91.00012207); //object(la_fuckcar1) (1)
			CreateObject(3594,-1229.80273438,2675.50927734,46.47207260,1.99993896,0.00167847,313.99963379); //object(la_fuckcar1) (2)
			CreateObject(3461,-1230.64855957,2674.10424805,44.57905960,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (1)
			CreateObject(3461,-1231.00012207,2674.93334961,44.57905960,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (2)
			CreateObject(3461,-1231.41235352,2674.30639648,44.57905960,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (3)
			CreateObject(3461,-1231.96191406,2673.47070312,44.57905960,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (4)
			CreateObject(3461,-1232.38500977,2674.64672852,44.57905960,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (5)
			CreateObject(3461,-1231.27978516,2675.41528320,44.57905960,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (6)
			CreateObject(3461,-1230.16162109,2672.88452148,44.57905960,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (7)
			CreateObject(3461,-1230.30163574,2673.30615234,44.57905960,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (8)
			CreateObject(3461,-1231.00866699,2673.31884766,44.57905960,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (9)
			CreateObject(3461,-1231.03637695,2677.13793945,44.02902603,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (10)
			CreateObject(3461,-1227.98535156,2677.22436523,44.02902603,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (11)
			CreateObject(3461,-1227.98535156,2677.22363281,44.60406113,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (12)
			CreateObject(3461,-1229.08496094,2675.55371094,44.60406113,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (13)
			CreateObject(3461,-1198.18554688,2680.92944336,45.10406113,40.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (14)
			CreateObject(3461,-1201.25122070,2679.82299805,44.70403671,3.99572754,0.00000000,0.00000000); //object(tikitorch01_lvs) (15)
			CreateObject(3461,-1204.77490234,2680.10009766,43.77898026,3.99353027,0.00000000,0.00000000); //object(tikitorch01_lvs) (16)
			CreateObject(3461,-1204.15356445,2679.38500977,43.77898026,3.99353027,0.00000000,0.00000000); //object(tikitorch01_lvs) (17)
			CreateObject(3461,-1205.77685547,2678.73193359,43.27898026,3.99353027,0.00000000,0.00000000); //object(tikitorch01_lvs) (18)
			CreateObject(2780,-1200.97546387,2679.90527344,44.64109421,0.00000000,0.00000000,0.00000000); //object(cj_smoke_mach) (1)
			CreateObject(2780,-1230.01464844,2672.44897461,40.39109421,0.00000000,0.00000000,0.00000000); //object(cj_smoke_mach) (2)
			return 1;
		}
Nothing happen when i type /fire1 ?? Help please guys/females?
Reply
#2

Try this with CreatePlayerObject:
pawn Код:
if(!strcmp(cmdtext, "/fire1", true))
{
    CreatePlayerObject(playerid, 3594,-1200.96496582,2679.94970703,45.69702530,0.00000000,141.99993896,91.00012207); //object(la_fuckcar1) (1)
    CreatePlayerObject(playerid, 3594,-1229.80273438,2675.50927734,46.47207260,1.99993896,0.00167847,313.99963379); //object(la_fuckcar1) (2)
    CreatePlayerObject(playerid, 3461,-1230.64855957,2674.10424805,44.57905960,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (1)
    CreatePlayerObject(playerid, 3461,-1231.00012207,2674.93334961,44.57905960,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (2)
    CreatePlayerObject(playerid, 3461,-1231.41235352,2674.30639648,44.57905960,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (3)
    CreatePlayerObject(playerid, 3461,-1231.96191406,2673.47070312,44.57905960,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (4)
    CreatePlayerObject(playerid, 3461,-1232.38500977,2674.64672852,44.57905960,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (5)
    CreatePlayerObject(playerid, 3461,-1231.27978516,2675.41528320,44.57905960,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (6)
    CreatePlayerObject(playerid, 3461,-1230.16162109,2672.88452148,44.57905960,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (7)
    CreatePlayerObject(playerid, 3461,-1230.30163574,2673.30615234,44.57905960,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (8)
    CreatePlayerObject(playerid, 3461,-1231.00866699,2673.31884766,44.57905960,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (9)
    CreatePlayerObject(playerid, 3461,-1231.03637695,2677.13793945,44.02902603,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (10)
    CreatePlayerObject(playerid, 3461,-1227.98535156,2677.22436523,44.02902603,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (11)
    CreatePlayerObject(playerid, 3461,-1227.98535156,2677.22363281,44.60406113,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (12)
    CreatePlayerObject(playerid, 3461,-1229.08496094,2675.55371094,44.60406113,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (13)
    CreatePlayerObject(playerid, 3461,-1198.18554688,2680.92944336,45.10406113,40.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (14)
    CreatePlayerObject(playerid, 3461,-1201.25122070,2679.82299805,44.70403671,3.99572754,0.00000000,0.00000000); //object(tikitorch01_lvs) (15)
    CreatePlayerObject(playerid, 3461,-1204.77490234,2680.10009766,43.77898026,3.99353027,0.00000000,0.00000000); //object(tikitorch01_lvs) (16)
    CreatePlayerObject(playerid, 3461,-1204.15356445,2679.38500977,43.77898026,3.99353027,0.00000000,0.00000000); //object(tikitorch01_lvs) (17)
    CreatePlayerObject(playerid, 3461,-1205.77685547,2678.73193359,43.27898026,3.99353027,0.00000000,0.00000000); //object(tikitorch01_lvs) (18)
    CreatePlayerObject(playerid, 2780,-1200.97546387,2679.90527344,44.64109421,0.00000000,0.00000000,0.00000000); //object(cj_smoke_mach) (1)
    CreatePlayerObject(playerid, 2780,-1230.01464844,2672.44897461,40.39109421,0.00000000,0.00000000,0.00000000); //object(cj_smoke_mach) (2)
    return 1;
}
Reply
#3

Sometimes there is a problem with spawning Objects iG since 0.3c

I had the same problem. I changed to Streaming and it worked!

And no my Objectslimit were not over^^
Reply
#4

@Clive Thanks but it only works for me and anyone who types /fire1 everyone else cannot see it ??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)