SA-MP Forums Archive
Somone Help Me :D - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Somone Help Me :D (/showthread.php?tid=558760)



Somone Help Me :D - astanalol - 18.01.2015

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


Re: Somone Help Me :D - Schneider - 18.01.2015

Are you using streamer?


Re: Somone Help Me :D - astanalol - 18.01.2015

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


Re: Somone Help Me :D - JaydenJason - 18.01.2015

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


Re: Somone Help Me :D - astanalol - 18.01.2015

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



Re: Somone Help Me :D - JaydenJason - 18.01.2015

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?


Re: Somone Help Me :D - astanalol - 18.01.2015

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


Re: Somone Help Me :D - Schneider - 18.01.2015

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.


Re: Somone Help Me :D - Rockyyy - 18.01.2015

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