Somone Help Me :D [+RepSsSs]
#1

Hello Guys
i Want Know About Exit House DynamicCP
i Want Make the exit in my system
can somone help me +rep please help
PHP код:
#include <a_samp>
#include <Streamer>
#include <zcmd>
#include <sscanf2>
new house1;
new 
house2;
CMD:createhouse(playeridparams[])
{
new 
interior;
if(
sscanf(params,"i"interior)) return SendClientMessage(playerid, -1"/createhouse [1~2]");
if(
interior == 1)
{
new 
Float:xFloat:yFloat:z;
GetPlayerPos(playeridxyz);
house1 CreateDynamicCPx,y,z,2.0,GetPlayerVirtualWorld(playerid),-1,-1,100.0);
}
else if(
interior == 2)
{
new 
Float:xFloat:yFloat:z;
GetPlayerPos(playeridxyz);
house2 CreateDynamicCP(x,y,z,2.0,GetPlayerVirtualWorld(playerid),-1,-1,100.0);
}
else
{
SendClientMessage(playerid, -1"Invaild Interior ID");
}
return 
1;
}
public 
OnPlayerEnterDynamicCP(playeridcheckpointid){
if(
checkpointid == house1)
{
SetPlayerInterior(playerid,2);
SetPlayerPos(playerid,271.884979,306.631988,999.148437);
}
else if(
checkpointid == house2)
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,1527.229980,-11.574499,1002.097106 );
}
return 
1;} 
CP Exit in house1 =
PHP код:
272.884979,306.631988,999.148437 
CP Exit in house2 =
PHP код:
1526.229980,-11.574499,1002.097106 
help +repss
Reply


Messages In This Thread
Somone Help Me :D [+RepSsSs] - by astanalol - 21.01.2015, 02:34
Re: Somone Help Me :D [+RepSsSs] - by 1fret - 21.01.2015, 03:21
AW: Somone Help Me :D [+RepSsSs] - by Saize - 21.01.2015, 03:32
Respuesta: Somone Help Me :D [+RepSsSs] - by Cerealguy - 21.01.2015, 03:37

Forum Jump:


Users browsing this thread: 2 Guest(s)