10.04.2009, 12:30
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...
--------------------------------------------------------
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...