General Help with an RP server. -
Marclang - 13.06.2009
Hi,
I was wondering if you can help me with the following things:
a) A decent spectating system, IE: Admins can use either "/spec" or "/recon", when they do "/spec off" or "/recon off" it stops spectating that paticular player and returns you to the
previous position
Also, when you spectate someone, can someone please make it so you can rotate the camera (IE: move the mouse so you can see behind the player you're spectating), it would also be good if whilst spectating it would update the interior a player went into, IE: if they went into a house or police department.
b) Dynamic housing: I've searched and searched, i've only come up with "Carlito's Roleplay"
Can anyone help me find a filterscript, (apart from KIHC) which would allow me to edit exsisting houses, edit the interior, move them and create houses?
c) Jetpack: On the "/givegun" list, how can I change it so it gives someone a jetpack? (it's gun ID 21 i'm sure.)
Quote:
if(strcmp(cmd, "/givegun", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /givegun [playerid/PartOfName] [weaponid(eg. 46 = Parachute)]");
SendClientMessage(playerid, COLOR_GRAD4, "3(Club) 4(knife) 5(bat) 6(Shovel) 7(Cue) 8(Katana) 10-13(Dildo) 14(Flowers)");
SendClientMessage(playerid, COLOR_GRAD4, "16(Grenades) 18(Molotovs) 22(Pistol) 23(SPistol)");
SendClientMessage(playerid, COLOR_GRAD3, "24(Eagle) 25(shotgun) 27(spas12) 29(MP5) 30(AK47) 31(M4) 33(Rifle) 34(Sniper)");
SendClientMessage(playerid, COLOR_GRAD4, " 37(Flamethrower) 41(spray) 42(exting) 43(Camera) 46(Parachute)");
return 1;
}
new playa;
new gun;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
gun = strval(tmp);
if(gun < 1||gun > 46)
{ SendClientMessage(playerid, COLOR_GRAD1, " wrong WeaponID!"); return 1; }
if (PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GivePlayerWeapon(playa, gun, 650000);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
}
return 1;
}
|
Your help would be appreciated, and I'm sorry if i've posted in the wrong section.
Re: General Help with an RP server. -
MenaceX^ - 13.06.2009
You're actualy asking from some us to MAKE it, and not help you with because you didn't even start a code.
I suggest you to post it on "Script Request Thread"'s section, request and wait until someone makes it for you.
http://forum.sa-mp.com/index.php?topic=94387.0
And JetPack is not a gun, it's a speical action.
Re: General Help with an RP server. -
Marclang - 13.06.2009
Quote:
Originally Posted by MenaceX^
You're actualy asking from some us to MAKE it, and not help you with because you didn't even start a code.
I suggest you to post it on "Script Request Thread"'s section, request and wait until someone makes it for you.
http://forum.sa-mp.com/index.php?topic=94387.0
And JetPack is not a gun, it's a speical action.
|
I know, but how do you make it so when you use "/givegun (ID) 21" it gives them a jetpack?
Re: General Help with an RP server. -
MenaceX^ - 13.06.2009
As I said, it's a speical action, I don't remember their IDs..
Re: General Help with an RP server. -
Vince - 13.06.2009
Code:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
Also, if you download the server files, there will be a filterscript called
adminspec.pwn. Use that to make your /spec command.
Re: General Help with an RP server. -
Marclang - 13.06.2009
Thanks, i'm still a beginner but I think i'll learn in time.