Add the binco -
mertcan123 - 13.09.2015
how to add a 24/7, binco, gym i cant do this how to do this help me please
AW: Add the binco -
Kaliber - 13.09.2015
You can do this, by using an big Array like this:
PHP Code:
enum e_Entrance {
Float:a_x, //Entrance x
Float:a_y, //Entrance y
Float:a_z, //Entrance z
Float:e_x, //Exit point x
Float:e_y, //Exit point y
Float:e_z, //Exit point z
e_pick,
e_int,
e_world,
e_text[32]
};
stock const Interiors[][e_Entrance] = {
{0.0,0.0,3.0, 50.0,0.0,0.0, 1239, 0, 0, "Test Interior"}
};
//Can use this with /enter or KeyCode
stock EnterInterior(playerid)
{
for(new i; i<sizeof(Interiors); i++) {
if(!IsPlayerInRangeOfPoint(playerid,2.0,Interiors[i][a_x],Interiors[i][a_y],Interiors[i][a_z])) continue;
SetPlayerPos(playerid,Interiors[i][e_x],Interiors[i][e_y],Interiors[i][e_z]);
SetPlayerInterior(playerid,Interiors[i][e_int]);
SetPlayerVirtualWorld(playerid,Interiors[i][e_world]);
GameTextForPlayer(playerid,Interiors[i][e_text],5000,5);
return 1;
}
return 0;
}
//OnGameModeInit
for(new i; i<sizeof(Interiors); i++) {
AddStaticPickup(Interiors[i][e_pick],23,Interiors[i][a_x],Interiors[i][a_y],Interiors[i][a_z]);
AddStaticPickup(Interiors[i][e_pick],23,Interiors[i][e_x],Interiors[i][e_y],Interiors[i][e_z]);
}
I think..you should understand the thing behind
Re: AW: Add the binco -
mertcan123 - 13.09.2015
Quote:
Originally Posted by Kaliber
You can do this, by using an big Array like this:
PHP Code:
enum e_Entrance {
Float:a_x, //Entrance x
Float:a_y, //Entrance y
Float:a_z, //Entrance z
Float:e_x, //Exit point x
Float:e_y, //Exit point y
Float:e_z, //Exit point z
e_pick,
e_int,
e_world,
e_text[32]
};
stock const Interiors[][e_Entrance] = {
{0.0,0.0,3.0, 50.0,0.0,0.0, 1239, 0, 0, "Test Interior"}
};
//Can use this with /enter or KeyCode
stock EnterInterior(playerid)
{
for(new i; i<sizeof(Interiors); i++) {
if(!IsPlayerInRangeOfPoint(playerid,2.0,Interiors[i][a_x],Interiors[i][a_y],Interiors[i][a_z])) continue;
SetPlayerPos(playerid,Interiors[i][e_x],Interiors[i][e_y],Interiors[i][e_z]);
SetPlayerInterior(playerid,Interiors[i][e_int]);
SetPlayerVirtualWorld(playerid,Interiors[i][e_world]);
GameTextForPlayer(playerid,Interiors[i][e_text],5000,5);
return 1;
}
return 0;
}
//OnGameModeInit
for(new i; i<sizeof(Interiors); i++) {
AddStaticPickup(Interiors[i][e_pick],23,Interiors[i][a_x],Interiors[i][a_y],Interiors[i][a_z]);
AddStaticPickup(Interiors[i][e_pick],23,Interiors[i][e_x],Interiors[i][e_y],Interiors[i][e_z]);
}
I think..you should understand the thing behind 
|
add description i cant understand you gived a code what the hell
AW: Re: AW: Add the binco -
Kaliber - 13.09.2015
Quote:
Originally Posted by mertcan123
add description i cant understand you gived a code what the hell
|
I did..so just learn the basics first..
Re: AW: Re: AW: Add the binco -
mertcan123 - 13.09.2015
Quote:
Originally Posted by Kaliber
I did..so just learn the basics first..
|
no you just gived a code i dont understand where is details
Re: Add the binco -
saffierr - 13.09.2015
lol, mertcan, bak iyi dinle, цnce pawno basic uren, ondansonra CMDS leri yap.
((I just translated it for him, as I noticed his english isn't that good))
Remove the reply if this is disallowed.
Re: Add the binco -
mertcan123 - 13.09.2015
Quote:
Originally Posted by saffierr
lol, mertcan, bak iyi dinle, цnce pawno basic uren, ondansonra CMDS leri yap.
((I just translated it for him, as I noticed his english isn't that good))
Remove the reply if this is disallowed.
|
i know pawno basic
Re: Add the binco -
Thoma - 13.09.2015
http://lmgtfy.com/?q=SAMP+How+to+add...or+Checkpoints
Word of advice.... Post all your questions,errors,bugs...etc into 1 post and not 5 topics.
Re : Add the binco -
KillerDVX - 14.09.2015
If you keep giving him codes without explaining he would never learn anything guys.
mertcan123, if you wan't to use a checkpoint for it, you have to use :
https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint
If you wan't a white pickup, use :
https://sampwiki.blast.hk/wiki/CreatePickup
- Read correctly the description that i gave you in these links.
Re: Add the binco -
sanamalik400 - 14.09.2015