FS stopig Gm commands from working - 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: FS stopig Gm commands from working (
/showthread.php?tid=130996)
FS stopig Gm commands from working -
02manchestera - 01.03.2010
The problem i have is when i add a [fs] it is stoppig my normaly commands from the [gm] from working any ideas im using errors account system and [FS] --> In-Game Car Spawner & Respawner <-- please help
many thanks alex
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new idx;
new cmd[256];
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/yadayada", true) == 0) {
return 1;
}
if (strcmp("/savepos", cmdtext, true) == 0)
{
GetPlayerPos(playerid, POS[playerid][0], POS[playerid][1], POS[playerid][2]);
SendClientMessage(playerid,0xFF44CF," Position Saved." );
return 1;
}
if (strcmp("/loadpos", cmdtext, true) == 0)
{
SetPlayerPos(playerid, POS[playerid][0], POS[playerid][1], POS[playerid][2]);
SendClientMessage(playerid,0xFF44CF," Position Loaded." );
return 1;
}
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid,0);
return 1;
}
if (strcmp("/commands", cmdtext, true) == 0)
{
SendClientMessage(playerid,0xFF441B," /v [model or id], /savepos, /loadpos, /kill." );
return 1;
}
return 0;
}
Re: FS stopig Gm commands from working -
aircombat - 01.03.2010
Suggestion : Mix Them Together
________
STARCRAFT REPLAY
Re: FS stopig Gm commands from working -
02manchestera - 01.03.2010
didnt work.
Re: FS stopig Gm commands from working -
MaykoX - 01.03.2010
Quote:
Originally Posted by 02manchestera
didnt work.
|
Maybe that FS you are adding is bugged. Because everything here seems good. Try adding another FS and remove the one which stops your commands from working.
Re: FS stopig Gm commands from working -
adsy - 01.03.2010
Make sure both scripts have return 0; at the end of onplayercommandtext
Re: FS stopig Gm commands from working -
02manchestera - 01.03.2010
Quote:
Originally Posted by adsy
Make sure both scripts have return 0; at the end of onplayercommandtext
|
You win $100mill you can claim it in the year 10,000
Works fine now many thanks alex
Re: FS stopig Gm commands from working -
adsy - 01.03.2010
o
*IGNORE POST*