SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 29/11/2009, 05:44 PM   #591
[SW]thekillaer
Little Clucker
 
Join Date: Jan 2007
Location: Chicago, Illinois
Posts: 35
Reputation: 0
Default Re: Script Request Thread #3

Currently im using this http://forum.sa-mp.com/index.php?topic=95706.0

but i want to use this http://forum.sa-mp.com/index.php?topic=69459.0

At top
Code:
#define ELAVATOR_BOTTOM        0
#define ELAVATOR_TOP         1
ongamemodeini
Code:
CreateCheckpoint(GLOBAL_OWNER_ID, ELAVATOR_BOTTOM,1442.7020,-167.7312,17.3382);
CreateCheckpoint(GLOBAL_OWNER_ID, ELAVATOR_TOP,1448.4299,-162.0256,91.9699);
StartCheckpointSeeking();


Code:
public OnPlayerEnterCheckpoint(playerid){
VerifyCheckpoint(playerid); // Asks the ChpManager to check this checkpoint and fire the next function
return 1;
}



Code:
public OnCheckpointEnter(playerid, checkpointid){
switch(checkpointid)
{
  // ELAVATOR
  case ELAVATOR_BOTTOM: // The checkpoint ID we specified when we created the checkpoint
  {
    SendClientMessage(playerid, COLOR_MESSAGE, "Going up!");
    SetPlayerPos(playerid,1448.4299,-162.0256,91.9699);

	}
  case ELAVATOR_TOP: // The checkpoint ID we specified when we created the checkpoint
  {
    SendClientMessage(playerid, COLOR_MESSAGE, "Going Down!");
    SetPlayerPos(playerid, 1442.7020,-167.7312,17.3382);

  }
}
return 1;
}

[SW]thekillaer is offline  
Old 29/11/2009, 07:07 PM   #592
Agnur
Little Clucker
 
Join Date: Feb 2007
Posts: 3
Reputation: 0
Default Re: Script Request Thread #3

Could anyone make an script that would spawn an jumper in front of the player, when clicking alt or maybe ctrl?

Thanks alot already for the trouble.
Agnur is offline  
Old 29/11/2009, 09:03 PM   #593
DarkClone
Huge Clucker
 
Join Date: Mar 2009
Posts: 236
Reputation: 0
Default Re: Script Request Thread #3

Quote:
Originally Posted by Agnur
Could anyone make an script that would spawn an jumper in front of the player, when clicking alt or maybe ctrl?

Thanks alot already for the trouble.
Do you mean a Ramp system? Like this one: http://forum.sa-mp.com/index.php?topic=41866.0
DarkClone is offline  
Old 30/11/2009, 06:53 AM   #594
whitedragon
Gangsta
 
Join Date: Sep 2009
Posts: 516
Reputation: 2
Default Re: Script Request Thread #3

i want working gang system for larp(cars and all)
__________________
If i have typos sry but dont have time to do spellcheck
whitedragon is offline  
Old 30/11/2009, 12:01 PM   #595
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Location: Slovenia
Posts: 6,340
Reputation: 365
Default Re: Script Request Thread #3

Quote:
Originally Posted by [HLF
Southclaw ]
Could someone make a SendFormatMessage
pawn Code:
new
    FALSE = 0;

pawn Code:
#define SendFormattedMessageToAll(%0,%1,%2) \
do \
{ \
  new \
      string[128]; \
  if(strlen(%1) > 0) \
  { \
    format(string, sizeof(string), %1, %2); \
    foreach(Player, u) SendClientMessage(u, %0, string); \
  } \
} \
while(FALSE)

Example:
pawn Code:
SendFormattedMessageToAll(0xFFFFFFAA, "myValue: %i.", myVariable);

If you're not formatting anything in the message, then make sure to use it like this:
pawn Code:
SendFormattedMessageToAll(0xFFFFFFAA, "myMessage", 0);

You'll also need ******'s foreach function, you can get it here - http://y-less.pastebin.ca/1692731
Correlli is offline  
Old 30/11/2009, 12:22 PM   #596
Remi-X
Huge Clucker
 
Join Date: Dec 2008
Posts: 296
Reputation: 0
Default Re: Re: Script Request Thread #3

I like this one more:
pawn Code:
new FALSE = false;
#define SendClientFormattedMessage(%0,%1,%2) do{new _str[128];format(_str,128,%2);SendClientMessage(%0,%1,_str);}while(FALSE)
#define SendClientFormattedMessageToAll(%1,%2,%3) do{new _str[128];format(_str,128,(%2),%3);SendClientMessageToAll((%1),_str);}while(FALSE)
Less code, and you doesn't need foreach.

pawn Code:
SendClientFormattedMessage(playerid, color, const format[], {float,_}...);
SendClientFormattedMessageToAll(color, const format[], {float,_}...);
Example:
pawn Code:
SendClientFormattedMessage(playerid, #FFFFFFFF, "Your playerid: %d", playerid);
Remi-X is offline  
Old 30/11/2009, 05:07 PM   #597
Agnur
Little Clucker
 
Join Date: Feb 2007
Posts: 3
Reputation: 0
Default Re: Script Request Thread #3

Quote:
Originally Posted by DarkClone
Quote:
Originally Posted by Agnur
Could anyone make an script that would spawn an jumper in front of the player, when clicking alt or maybe ctrl?

Thanks alot already for the trouble.
Do you mean a Ramp system? Like this one: http://forum.sa-mp.com/index.php?topic=41866.0
Yep thats exatcly what I was looking for, thank you.
Agnur is offline  
Old 30/11/2009, 10:29 PM   #598
buonggiorno
Huge Clucker
 
Join Date: Apr 2008
Posts: 238
Reputation: 0
Default Re: Script Request Thread #3

Hi to all, i make unit in national guard to save people when thay hape crash with plane, car or boat, and get little healt. I want whem somebody type /call rescue that he begin red on map and to all members in national guard shown message player ( his name ) need imidiatly rescue go and save him! hi is red od the map!

is this posibile? can help me? tnx alot

Team national guard is ID 3
buonggiorno is offline  
Old 02/12/2009, 12:55 AM   #599
TheNotorius
Big Clucker
 
Join Date: Aug 2009
Location: Brisbane, Australia
Posts: 190
Reputation: 0
Default Re: Script Request Thread #3

Hello Guys, Im in search of some good scripters, please
i need some for my New RP Server, Scripters will Get Tons Of Cash In-game
Max Admin Level.

If you would like to contact me please pm me,

Thank You

Darkside

P.S I Really need some D: lol
TheNotorius is offline  
Old 02/12/2009, 10:08 AM   #600
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Location: Slovenia
Posts: 6,340
Reputation: 365
Default Re: Script Request Thread #3

Quote:
Originally Posted by TheNotorius
Scripters will Get Tons Of Cash In-game
Good scripters are not looking for cash in-game, but in real life.
Correlli is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script Request Thread #5 jameskmonger Help Archive 8 06/03/2011 12:42 PM
Script Request Thread #4 dugi Help Archive 1593 31/10/2010 11:08 AM
Script Request Thread kaisersouse Help Archive 1112 20/03/2009 11:15 AM


All times are GMT. The time now is 08:24 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.