Hello Guys... need 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: Hello Guys... need Help (
/showthread.php?tid=72689)
Hello Guys... need Help -
Bearfist - 10.04.2009
Everytime I want to Compile my new Pwn file with this command
--------------------------------------------------------
new smoke = AttachObjectToPlayer(2780, playerid, Float:0.0, Float:0.0, Float:0.0, Float:0.0, Float:0.0, Float:0.0);
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/smoke", cmdtext, true, 10) == 0)
{
if(smoke[playerid] == 0)
{
smoke[playerid] = 1;
SendClientMessage(playerid,COLOR_BLUE,"smoke is on");
}
else
{
smoke[playerid] = 0;
SendClientMessage(playerid;COLOR_BLUE,"smoke is off");
}
return 1;
}
return 0;
}
------------------------------------------------------
ehm... I want to make a command which make the player smoke and also let him stop to smoke
I created a command which is very simple
------------------------------------
if(strcmp("/smoke",cmdtext,true) == 0)
{
AttachObjectToPlayer(2780, playerid, Float:0.0, Float:0.0, Float:0.0, Float:0.0, Float:0.0, Float:0.0);
return 1;
}
-----------------------------------------
but by tipping this command, the player doesn't stop smoke
--------------------------------------------------------------------------------
Sry for this stupid post ^^ by pressing space he will stop smokin' ...
THis Post can be closed...