SA-MP Forums Archive
Problem help - 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)
+--- Thread: Problem help (/showthread.php?tid=530578)



Problem help - Spartaaaaa - 07.08.2014

My chat text color is green and it small line

Код:
//==============================================================================
// Player Text
//==============================================================================
public OnPlayerText(playerid, text[])
{
	new pChat[250], string[128], ctime, PText[256];

when i write /leave it's still on DM won't leave area

Код:
CMD:leave(playerid, params [])
{

    new rand = random(sizeof(Leavespawnpoints));
	SetPlayerPos(playerid, Leavespawnpoints[rand][0], Leavespawnpoints[rand][1], Leavespawnpoints[rand][2]);
	SetPlayerVirtualWorld(playerid, 0);
	SetPlayerInterior(playerid, 0);
	ResetPlayerWeapons(playerid);
    SetPlayerHealth(playerid, 100);
    return 1;
}



Re: Problem help - Clad - 07.08.2014

Quote:
Originally Posted by Spartaaaaa
Посмотреть сообщение
My chat text color is green and it small line

Код:
//==============================================================================
// Player Text
//==============================================================================
public OnPlayerText(playerid, text[])
{
	new pChat[250], string[128], ctime, PText[256];

when i write /leave it's still on DM won't leave area

Код:
CMD:leave(playerid, params [])
{

    new rand = random(sizeof(Leavespawnpoints));
	SetPlayerPos(playerid, Leavespawnpoints[rand][0], Leavespawnpoints[rand][1], Leavespawnpoints[rand][2]);
	SetPlayerVirtualWorld(playerid, 0);
	SetPlayerInterior(playerid, 0);
	ResetPlayerWeapons(playerid);
    SetPlayerHealth(playerid, 100);
    return 1;
}
The first one, We can't help with the Color, We have to see the format of the message, And about small line, I didn't understand what you do mean.
About the command, Can I see the command which allows you to go to DM Mode ?


Re: Problem help - Spartaaaaa - 07.08.2014

Which code you want?


Re: Problem help - Spartaaaaa - 08.08.2014

I search for "OnPlayerText" it's show me this code:
Код:
//==============================================================================
// Player Text
//==============================================================================
public OnPlayerText(playerid, text[])
{
	new pChat[250], string[128], ctime, PText[256];
When i write /Leave it's teleport to other area but i can't use any command bcuz it's still saying Write /Leave to leave DM, but i already wrote /leave i don't know what to do.


Re: Problem help - Frezemis - 08.08.2014

The command that enter's the DM please.


Re: Problem help - Spartaaaaa - 08.08.2014

Код:
CMD:minigun(playerid, params[])
{
	return cmd_mg(playerid, params);
}



Re: Problem help - Spartaaaaa - 08.08.2014

bump