Author Topic: Little scripting help here  (Read 5125 times)

0 Members and 1 Guest are viewing this topic.

yazeen

  • Guest
Little scripting help here
« on: March 02, 2011, 08:11:47 am »
im making a rpg server here are my doubt

. how to block the way just like sharks vs mario we cant go out

.viewing reports in server after posting reports [only for admins] delete report command too

.What is setanim command ?what is its use ?

.property making system in server eg:!addprop villa 50200

.taking food for hp in pizza corner after buying wth cash same thing with drugs at docks after logout and next login the items should be with the player

plse help

New questions added

.What is use of settimer and give me an example

there are many more questions but i forgot!!!

ill update it here when i get some questions  thx in advance
 ;D
« Last Edit: March 09, 2011, 09:31:28 am by yazeen »

Offline BIG[H]

  • Made Man
  • ***
  • Posts: 159
  • Sight of light
    • View Profile
Re: Little scripting help here
« Reply #1 on: March 02, 2011, 02:09:39 pm »
Quote
how to block the way just like sharks vs mario we cant go out

SetWorldsBound() in gamemode init :D

 or else use Shadow PlayerToPoint(30,i,x,y,z);
copy and paste healall from gups and edit it with
if(PlayerToPoint(30,i,x,y,z) == 0) {
setplayerpos(bla bla);
}
and set timer in gamemode init

SetTimer("Playersinarea",500,1);

Quote
.viewing reports in server after posting reports [only for admins] delete report command too
i need this too but i made reporting system i need how to check reports in game and delete i need this too
"Dini_Get something like"


Quote
.What is setanim command ?what is its use ?
Set Player  Animation O_o like we type /do 4 or /sell it shows player doing somthing
in Pawn it is BUGGED
Quote
.property making system in server eg:!addprop villa 50200
Gups has that But adding props while server running with pawn not possible u may manually add pickups of props but with mIRC its possible while server running u can add pickups



Quote
.taking food for hp in pizza corner after buying wth cash same thing with drugs at docks after logout and next login the items should be with the player
Cool i need it too  
Outdoor city server Administrator, FS server owner!

yazeen

  • Guest
Re: Little scripting help here
« Reply #2 on: March 02, 2011, 02:51:02 pm »
Quote
how to block the way just like sharks vs mario we cant go out

SetWorldsBound() in gamemode init :D

 or else use Shadow PlayerToPoint(30,i,x,y,z);
copy and paste healall from gups and edit it with
if(PlayerToPoint(30,i,x,y,z) == 0) {
setplayerpos(bla bla);
}
and set timer in gamemode init

SetTimer("Playersinarea",500,1);

Quote
.viewing reports in server after posting reports [only for admins] delete report command too
i need this too but i made reporting system i need how to check reports in game and delete i need this too
"Dini_Get something like"


Quote
.What is setanim command ?what is its use ?
Set Player  Animation O_o like we type /do 4 or /sell it shows player doing somthing
in Pawn it is BUGGED
Quote
.property making system in server eg:!addprop villa 50200
Gups has that But adding props while server running with pawn not possible u may manually add pickups of props but with mIRC its possible while server running u can add pickups



Quote
.taking food for hp in pizza corner after buying wth cash same thing with drugs at docks after logout and next login the items should be with the player
Cool i need it too  

thanks man

Offline BIG[H]

  • Made Man
  • ***
  • Posts: 159
  • Sight of light
    • View Profile
Re: Little scripting help here
« Reply #3 on: March 02, 2011, 02:53:18 pm »
 8)
Outdoor city server Administrator, FS server owner!

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
Re: Little scripting help here
« Reply #4 on: March 02, 2011, 05:47:55 pm »
I will post my answer to the last question when I will reach my home.I will give some that can help :D

Code: [Select]
new pizzas[MAX_PLAYERS];
Code: [Select]
forward SetPlayerMoneyLoss(playerid,ammount);
public SetPlayerMoneyLoss(playerid,ammount)
{
new cash; cash = GetPlayerMoney(playerid);
SetPlayerMoney(playerid,cash-ammount);
/*new string[256];
format(string,sizeof(string),"You lost $%d",ammount);
SendClientMessage(playerid,00000xFF,string);
*/
// To un-comment just delete the /* and */
return cash-ammount;
}
Made by me in 2 mins.

Code: [Select]
forward SetPlayerMoneyAdds(playerid,ammount);
public SetPlayerMoneyAdds(playerid,ammount)
{
new cash; cash = GetPlayerMoney(playerid);
SetPlayerMoney(playerid,cash+ammount);
/*new string[256];
format(string,sizeof(string),"You gained $%d",ammount);
SendClientMessage(playerid,00000xFF,string);
*/
// To un-comment just delete the /* and */
return cash+ammount;
}
also made by me in a few minutes.Those can help you :D
Code: [Select]
[20:23] <habi> later only i heard that lu chatbox is customizable. On my first visit, it appeared ugly.
[20:23] <habi> May be that also be the reason why lu has no players

yazeen

  • Guest
Re: Little scripting help here
« Reply #5 on: March 09, 2011, 09:28:33 am »
I will post my answer to the last question when I will reach my home.I will give some that can help :D

Code: [Select]
new pizzas[MAX_PLAYERS];
Code: [Select]
forward SetPlayerMoneyLoss(playerid,ammount);
public SetPlayerMoneyLoss(playerid,ammount)
{
new cash; cash = GetPlayerMoney(playerid);
SetPlayerMoney(playerid,cash-ammount);
/*new string[256];
format(string,sizeof(string),"You lost $%d",ammount);
SendClientMessage(playerid,00000xFF,string);
*/
// To un-comment just delete the /* and */
return cash-ammount;
}
Made by me in 2 mins.

Code: [Select]
forward SetPlayerMoneyAdds(playerid,ammount);
public SetPlayerMoneyAdds(playerid,ammount)
{
new cash; cash = GetPlayerMoney(playerid);
SetPlayerMoney(playerid,cash+ammount);
/*new string[256];
format(string,sizeof(string),"You gained $%d",ammount);
SendClientMessage(playerid,00000xFF,string);
*/
// To un-comment just delete the /* and */
return cash+ammount;
}
also made by me in a few minutes.Those can help you :D

u didnt reach home? :D

yazeen

  • Guest
Re: Little scripting help here
« Reply #6 on: March 09, 2011, 09:33:52 am »
New question added plse help guys

yazeen

  • Guest
Re: Little scripting help here
« Reply #7 on: March 09, 2011, 04:20:34 pm »
Please say how to find world bound i heard there is a software called jacob's World Boundaries tool

but no download link plse help !!!  :)

yazeen

  • Guest
Re: Little scripting help here
« Reply #8 on: March 11, 2011, 10:24:19 am »
Wtf invalid index bad parameter error comes while hosting me server in the srv screen when i connect to server it crashes plse help me

Offline BIG[H]

  • Made Man
  • ***
  • Posts: 159
  • Sight of light
    • View Profile
Re: Little scripting help here
« Reply #9 on: March 11, 2011, 04:42:39 pm »
Man did you just added Createpickup thing..Remove it! its not in R2 0.3z maybe in 0.4
Outdoor city server Administrator, FS server owner!

yazeen

  • Guest
Re: Little scripting help here
« Reply #10 on: March 12, 2011, 09:26:58 am »
Man did you just added Createpickup thing..Remove it! its not in R2 0.3z maybe in 0.4

Create pickup OOO wtf

Addstaticpickup?


Offline BIG[H]

  • Made Man
  • ***
  • Posts: 159
  • Sight of light
    • View Profile
Re: Little scripting help here
« Reply #11 on: March 12, 2011, 04:12:35 pm »
any other thing ??
Outdoor city server Administrator, FS server owner!

yazeen

  • Guest
Re: Little scripting help here
« Reply #12 on: March 13, 2011, 07:54:09 am »
any other thing ??

Hey thx it worked anyway to addpickups? :(

Offline BIG[H]

  • Made Man
  • ***
  • Posts: 159
  • Sight of light
    • View Profile
Re: Little scripting help here
« Reply #13 on: March 13, 2011, 02:24:53 pm »
AddStaticPickup(id,model,x,y,z,ammo);
Outdoor city server Administrator, FS server owner!

Offline BIG[H]

  • Made Man
  • ***
  • Posts: 159
  • Sight of light
    • View Profile
Re: Little scripting help here
« Reply #14 on: March 15, 2011, 06:33:51 pm »
in what??
Outdoor city server Administrator, FS server owner!