Plz Help Me !@#$@%$& - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Plz Help Me !@#$@%$& (
/showthread.php?tid=67908)
Plz Help Me !@#$@%$& -
_System_ - 05.03.2009
Ok Listen,
I Have A Stunts Mode ,
I Need a :-
/Fix - Fixes Fire + CarBody + Tires
/NoS - Gives You Unlimited Nitro + a CTRL Key To Stop It !
/Flip
/AFK + /UNAFK
/Afob - Anti Fall Of Bike /Afof - Remove it
/Plant - Plants A Bomb Explodes After 10 Second ! (One Time From ConnecT)
Question -
How To Do A Random Teleports , I Mean if we Do (/DM) Teleports You To Diffrent Places?
How To Put Vehicles In Interior , And Why When I Teleports With Vehicle To Interior It Makes it Unvisible
?
Thanks
You Dont Need To Help Me all of this put help me in a little
Re: Plz Help Me !@#$@%$& -
[RP]Rav - 05.03.2009
two things: script request thread & search button
Re: Plz Help Me !@#$@%$& -
Daren_Jacobson - 05.03.2009
/Fix - Fixes Fire + CarBody + Tires
pawn Код:
//not possible to fix car body or tires
if(!strcmp(cmdtext, "/fix" true))
{
SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0)
return 1;
}
/NoS - Gives You Unlimited Nitro + a CTRL Key To Stop It !
pawn Код:
OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys & KEY_SUBMISSION) == (KEY_SUBMISSION) && (IsPlayerInAnyVehicle(playerid)))//not sure if that is how you do it
{
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
return 1;
}
return 0;
}
/Flip
not possible
/AFK + /UNAFK
would take alot of time
/Afob - Anti Fall Of Bike /Afof - Remove it
not possible
/Plant - Plants A Bomb Explodes After 10 Second ! (One Time From ConnecT)
involves SetTimer and CreateExplosion, i will let you do it
Question -
How To Do A Random Teleports , I Mean if we Do (/DM) Teleports You To Diffrent Places?
make an array like
RandomPortsx[10]
RandomPortsy[10]
RandomPortsz[10]
than fill those with the places you want to teleport to, and
pawn Код:
var = random(10)
SetPlayerPos(playerid, RandomPortsx[var], RandomPorts[var], RandomPorts[var]);
How To Put Vehicles In Interior , And Why When I Teleports With Vehicle To Interior It Makes it Unvisible

?
LinkVehicleToInterior(vehid, intid);
hop i could help
Re: Plz Help Me !@#$@%$& -
Jason_Borne - 06.04.2009
/flip and /afk are very very easy you can find them with the search button.
heres better way for random spawn than that confusing array....
Код:
if(IsPlayerInAnyVehicle(playerid)) {
SendClientMessage(playerid, COLOR_ERROR, "You cannot teleport with a car");//optional
return 1;
}
new dmrand = random(100);
if(dmrand >=0 && dmrand <=50) { // 50/50 chance
SetPlayerPos(playerid, yourcoords here);
SetPlayerFacingAngle(playerid, angle here);
SendClientMessageToAll(playerid, COLOR_RED, "A player has used /dm");
return 1;
}
if(dmrand >=51 && dmrand <=100)
{
SetPlayerPos(playerid, youotherdmrcoords here);
SetPlayerFacingAngle(playerid, otherangle here);
SendClientMessageToAll(playerid, COLOR_RED, "A player has used /dm");
return 1;
Re: Plz Help Me !@#$@%$& -
dre$tA - 06.04.2009
Quote:
Originally Posted by Daren_Jacobson
/Fix - Fixes Fire + CarBody + Tires
pawn Код:
//not possible to fix car body or tires if(!strcmp(cmdtext, "/fix" true)) { SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0) return 1; }
/NoS - Gives You Unlimited Nitro + a CTRL Key To Stop It !
pawn Код:
OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if ((newkeys & KEY_SUBMISSION) == (KEY_SUBMISSION) && (IsPlayerInAnyVehicle(playerid)))//not sure if that is how you do it { AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); return 1; } return 0; }
/Flip
not possible
/AFK + /UNAFK
would take alot of time
/Afob - Anti Fall Of Bike /Afof - Remove it
not possible
/Plant - Plants A Bomb Explodes After 10 Second ! (One Time From ConnecT)
involves SetTimer and CreateExplosion, i will let you do it
Question -
How To Do A Random Teleports , I Mean if we Do (/DM) Teleports You To Diffrent Places?
make an array like
RandomPortsx[10]
RandomPortsy[10]
RandomPortsz[10]
than fill those with the places you want to teleport to, and
pawn Код:
var = random(10) SetPlayerPos(playerid, RandomPortsx[var], RandomPorts[var], RandomPorts[var]);
How To Put Vehicles In Interior , And Why When I Teleports With Vehicle To Interior It Makes it Unvisible  ?
LinkVehicleToInterior(vehid, intid);
hop i could help
|
Код:
//not possible to fix car body or tires, It is if you teleport car to Pay'N'Spray & back with storing the old position into variable
if(!strcmp(cmdtext, "/fix" true))
{
SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0)
return 1;
}
/Flip
not possible,
yes it's very possible
https://sampwiki.blast.hk/wiki/SetVehicleZAngle
/AFK + /UNAFK
would take alot of time,
no it's simple script depending how you want it
/Afob - Anti Fall Of Bike /Afof - Remove it
not possible,
very possible too...
g2g to school so i don't have time to script them all for you now