Dynamic CP
#3

Quote:
Originally Posted by Flamehaze7
Посмотреть сообщение
Код:
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
Just replace the stuff like "Float" ecc with your coords and stuff


If you want to randomize that:

Example:

Just replace "x,y,z" with your coords
Код:
new Float: MissionGod[3][3] = {
{x,y,z},
{x,y,z},
{x,y,z},
{x,y,z}
};
This is an example command to trigger the Random Dynamic Checkpoint
Код:
CMD:randomCP(playerid,params[])
{
new rand;
rand = random(sizeof(MissionGod));
CreateDynamicCP(MissionGod[rand][0], MissionGod[rand][1], MissionGod[rand][2], Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
return 1;
}
it need to be with a tag?


Код:
DCP = CreateDynamicCP(MissionGod[rand][0], MissionGod[rand][1], MissionGod[rand][2], Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
you don't need to add

new rand;
rand = random(sizeof(MissionGod));
cause i already got it lol.

how about the enter?
Reply


Messages In This Thread
Dynamic CP - by Ryan50 - 20.02.2017, 00:07
Re: Dynamic CP - by Flamehaze7 - 20.02.2017, 06:19
Re: Dynamic CP - by Ryan50 - 20.02.2017, 11:33
Re: Dynamic CP - by Ahmad45123 - 20.02.2017, 11:40
Re: Dynamic CP - by Ryan50 - 20.02.2017, 11:45
Re: Dynamic CP - by Ahmad45123 - 20.02.2017, 11:50
Re: Dynamic CP - by Ryan50 - 20.02.2017, 11:53
Re: Dynamic CP - by Flamehaze7 - 20.02.2017, 13:19
Re: Dynamic CP - by Ryan50 - 20.02.2017, 20:23

Forum Jump:


Users browsing this thread: 1 Guest(s)