Need some commands
#1

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 ...
Reply
#2

Take the one from my script :P
Reply
#3

Yeah.. Could you accept me on MSN? I need some more help
Reply
#4

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.
Reply
#5

Ahh ok.. And i need the /setskin command.
Reply
#6

lol thats in mine too
Reply
#7

Does not work
Reply
#8

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;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)