Somone Help Me :D
#1

Hello Guys
i Want Know How To Change The Pickups To Checkpoints cuz i dont know about pickups see here
PHP код:
house1 CreatePickup(12732x,y,z,GetPlayerVirtualWorld(playerid)); 
its will only remove the id pickup 1273 ?
and where the Size CP ? there i dont know please help me
Reply
#2

Are you using streamer?
Reply
#3

Quote:
Originally Posted by Schneider
Посмотреть сообщение
Are you using streamer?
not my problem Streamer
but yes i use it
i Want only Change This Code From Pickup to Checkpoints
Reply
#4

PHP код:
house1 SetPlayerCheckpoint(playeridx,y,z);
 
/*
public OnPlayerEnterCheckpoint(playerid)
{
    DisablePlayerCheckpoint(playerid);
    return 1;
}
*\ 
This'll do the job I think.
Reply
#5

Quote:
Originally Posted by JaydenJason
Посмотреть сообщение
PHP код:
house1 SetPlayerCheckpoint(playeridx,y,z);
 
/*
public OnPlayerEnterCheckpoint(playerid)
{
    DisablePlayerCheckpoint(playerid);
    return 1;
}
*\ 
This'll do the job I think.
its will be this ? this right ?
PHP код:
GetPlayerVirtualWorld(playerid
PHP код:
house1 SetPlayerCheckpoint(playeridx,y,z,GetPlayerVirtualWorld(playerid)); 
Reply
#6

Quote:
Originally Posted by astanalol
Посмотреть сообщение
its will be this ? this right ?
PHP код:
GetPlayerVirtualWorld(playerid
PHP код:
house1 SetPlayerCheckpoint(playeridx,y,z,GetPlayerVirtualWorld(playerid)); 
PHP код:
new vw GetPlayerVirtualWorld(playerid);
house1 SetPlayerCheckpoint(playeridx,y,z,vw); 
I can barely get this, can you post a bit more of the code? Like for what the house1 is being used?
Reply
#7

Quote:
Originally Posted by JaydenJason
Посмотреть сообщение
PHP код:
new vw GetPlayerVirtualWorld(playerid);
house1 SetPlayerCheckpoint(playeridx,y,z,vw); 
I can barely get this, can you post a bit more of the code? Like for what the house1 is being used?
this my code to u know its full
PHP код:
new house1;
new 
house2
PHP код:
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 CreatePickup(12732x,y,z,GetPlayerVirtualWorld(playerid));
}
else if(
interior == 2)
{
new 
Float:xFloat:yFloat:z;
GetPlayerPos(playeridxyz);
house2 CreatePickup(12722x,y,z,GetPlayerVirtualWorld(playerid));
}
else
{
SendClientMesssage(playerid, -1"Invaild Interior ID");
}
return 
1;

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 );

i want it please with Checkpoints +reps
Reply
#8

Since when does SetPlayerCheckpoint has a virtualworld-parameter?

@astanalol: Reason for my first question was, you might wanna use Streamers DynamicCheckpoints, since you can only have 1 checkpoint active at a time for each player.
Reply
#9

pawn Код:
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 = CreateDynamicCP( x,y,z,CHECKPOINTSIZE,GetPlayerVirtualWorld(playerid),-1,-1,100.0);
}
else if(interior == 2)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
house2 = CreateDynamicCP(x,y,z,CHECKPOINTSIZE,GetPlayerVirtualWorld(playerid),-1,-1,100.0);
}
else
{
SendClientMesssage(playerid, -1, "Invaild Interior ID");
}
return 1;
}
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid){
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;}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)