Help Me in [CreateDynamicCP House :D] -
astanalol - 14.01.2015
Hello Every one

i Want Know How To Make With Choose From 2 House
/createhouse 1 or /createhouse 2
with this pos
PHP код:
1interior = 2
1Pos = 271.884979,306.631988,999.148437
PHP код:
2interior = 3
2Pos = 1527.229980,-11.574499,1002.097106

any one have idea
please help me +rep
Re: Help Me in [CreateDynamicCP House :D] -
nezo2001 - 14.01.2015
Did you make anything in the command ?
Re: Help Me in [CreateDynamicCP House :D] -
astanalol - 14.01.2015
Quote:
Originally Posted by nezo2001
Did you make anything in the command ?
|
no cuz i dont have any idea to make house
Re: Help Me in [CreateDynamicCP House :D] -
astanalol - 15.01.2015
Bumb
Re: Help Me in [CreateDynamicCP House :D] -
astanalol - 16.01.2015
No One
Respuesta: Help Me in [CreateDynamicCP House :D] -
Cerealguy - 16.01.2015
pawn Код:
CMD:createhouse(playerid, params[])
{
if(!sscanf(params,"i",interior)) SendClientMessage(playerid,-1,"Usage: /createhouse [interior]");
if(interior == 1)
{
CreateCP(POS 1);
}
else if(interior == 2)
{
CreateCP(POS 2);
}
return 1;
}
this is a smaill example
Re: Help Me in [CreateDynamicCP House :D] -
nezo2001 - 17.01.2015
Sorry for late
At the top
PHP код:
new house1;
new house2;
PHP код:
CMD:createhouse(playerid, params[])
{
new interior;
if(sscanf(params,"i", interior)) return SendClientMessage(playerid, -1, "/createhouse [1~2]");
if(interior == 1)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
house1 = CreatePickup(1273, 2, x,y,z,GetPlayerVirtualWorld(playerid));
}
else if(interior == 2)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
house2 = CreatePickup(1272, 2, x,y,z,GetPlayerVirtualWorld(playerid));
}
else
{
SendClientMesssage(playerid, -1, "Invaild Interior ID");
}
return 1;
}
Under OnPlayerPickUpPickup
PHP код:
if(pickupid == house1)
{
SetPlayerInterior(playerid,2);
SetPlayerPos(playerid,271.884979,306.631988,999.148437);
}
else if(pickupid == house2)
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,1527.229980,-11.574499,1002.097106 );
}
And then you done

!
And this is pickup not CP and this is better
Re: Help Me in [CreateDynamicCP House :D] -
astanalol - 17.01.2015
Quote:
Originally Posted by nezo2001
Sorry for late
At the top
PHP код:
new house1;
new house2;
PHP код:
CMD:createhouse(playerid, params[])
{
new interior;
if(sscanf(params,"i", interior)) return SendClientMessage(playerid, -1, "/createhouse [1~2]");
if(interior == 1)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
house1 = CreatePickup(1273, 2, x,y,z,GetPlayerVirtualWorld(playerid));
}
else if(interior == 2)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
house2 = CreatePickup(1272, 2, x,y,z,GetPlayerVirtualWorld(playerid));
}
else
{
SendClientMesssage(playerid, -1, "Invaild Interior ID");
}
return 1;
}
Under OnPlayerPickUpPickup
PHP код:
if(pickupid == house1)
{
SetPlayerInterior(playerid,2);
SetPlayerPos(playerid,271.884979,306.631988,999.148437);
}
else if(pickupid == house2)
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,1527.229980,-11.574499,1002.097106 );
}
And then you done  !
And this is pickup not CP and this is better 
|
i Love CP

i will Try it CP

thanks +rep dude