FS 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: FS Help (
/showthread.php?tid=73420)
FS Help -
Taz86 - 14.04.2009
I have this code:
Код:
#include <a_samp>
#define COLOR_GREEN 0x00FF00AA
new CreatedBlocks[200];
new CreatedBlock = 0;
public OnPlayerCommandText(playerid, cmdtext[]){
if(strcmp(cmdtext, "/roadblock", true)==0)
{
new Float:X, Float:Y, Float:Z, Float:A;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, A);
new block = CreateObject(978, X, Y, Z, 0.0, 0.0, A);
CreatedBlocks[CreatedBlock] = block;
CreatedBlock++;
SendClientMessage(playerid, COLOR_GREEN, "RoadBlock Successfully Deployed");
return 1;
}
if(strcmp(cmdtext, "/destroyallblocks", true)==0)
{
for(new i = 0; i <= CreatedBlocks[i]; i++) DestroyObject(CreatedBlocks[i]);
return 1;
}
return 0;
}
I want to make him To be FS
What do i have to do?
Re: FS Help -
Taz86 - 14.04.2009
no one?
Re: FS Help -
ICECOLDKILLAK8 - 14.04.2009
Nothing...
Re: FS Help -
OmeRinG - 14.04.2009
אחי פשוט תשתמש בזה בתור פילטרסקריפט זה אותו דבר חוץ מזה שצריך להחליף את:
OnGameModeInIt
ב
OnFilterScriptInit
וגם את
OnGameModeExit
ב
OnFilterScriptExit
זה הכל
English:
Just use it as a filterscript it's the same thing all you have to do is replace
OnGameModeInIt
in
OnFilterScriptInit
and also
OnGameModeExit
in
OnFilterScriptExit
that's it
Re: FS Help -
MenaceX^ - 14.04.2009
Quote:
Originally Posted by OmeRinG
אחי פשוט תשתמש בזה בתור פילטרסקריפט זה אותו דבר חוץ מזה שצריך להחליף את:
OnGameModeInIt
ב
OnFilterScriptInit
וגם את
OnGameModeExit
ב
OnFilterScriptExit
זה הכל
English:
Just use it as a filterscript it's the same thing all you have to do is replace
OnGameModeInIt
in
OnFilterScriptInit
and also
OnGameModeExit
in
OnFilterScriptExit
that's it
|
Read forum rules, even if you both from Israel and speak Hebrew, it doesn't mean you can speak Hebrew here.
Re: FS Help -
OmeRinG - 14.04.2009
that's the reason why I wrote it in english also
Re: FS Help -
StrickenKid - 14.04.2009
Quote:
Read forum rules, even if you both from Israel and speak Hebrew, it doesn't mean you can speak Hebrew here.
|
don't discriminate, just love
Re: FS Help -
MenaceX^ - 14.04.2009
People from Israel after go cry to me for talking to someone to unban them..
Re: FS Help -
StrickenKid - 14.04.2009
Quote:
Originally Posted by MenaceX^
People from Israel after go cry to me for talking to someone to unban them..
|
ok lets not get off topic...