Need some commands - 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: Need some commands (
/showthread.php?tid=99763)
Need some commands -
EverliteGaming - 30.09.2009
Hello, i am making a rp script. I want some commands because i dont know how to.
That i need :
/b - Local OOC
/createhouse - Creating a house in game. Creates it in a map (( C:\Users\Jathurshan!\Desktop\samp02Xserver.win32\s criptfiles\CRP_Scriptfiles\Houses ))
/addcar - Adds a car perm..
/createfaction - Creates a faction
It's the Carlito's RolePlay script. I really need /b..
Thanks for helping
...
Re: Need some commands -
Eazy_Efolife - 30.09.2009
Take the one from my script :P
Re: Need some commands -
EverliteGaming - 30.09.2009
Yeah.. Could you accept me on MSN? I need some more help
Re: Need some commands -
Eazy_Efolife - 30.09.2009
oh, I dont help people on MSN sorry, post in the topic. I will be happy to help you next time.
/b Command
Код:
I told you how to get that code already =P
CreateHouse thing
Код:
Just use /ahouseentrance so you can change the locations, if you want to add more, CRP should come with a house template, you can add a extra house that way!
Create Faction
Код:
Use /afactioncmds and you will see commands that you can make a faction with.
Re: Need some commands -
EverliteGaming - 30.09.2009
Ahh ok.. And i need the /setskin command.
Re: Need some commands -
Eazy_Efolife - 30.09.2009
lol thats in mine too
Re: Need some commands -
EverliteGaming - 30.09.2009
Does not work
Re: Need some commands -
Jofi - 30.09.2009
There is Local OOC in Carlito's Roleplay. But its
([text] not
/b [text]
Or just add this under OnPlayerCommandText
Command is not mine.
Код:
if(strcmp(cmd, "/b", true) == 0)//local ooc
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /b [text]");
return 1;
}
else
{
format(string, sizeof(string), "(( [%i] %s Says: %s ))", playerid, sendername, result);
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
printf("%s", string);
}
return 1;
}