|
|
#1 |
|
Big Clucker
![]() ![]() Join Date: Oct 2009
Posts: 69
Reputation: 0
|
Why the second action doesn't work 2
Code:
if (!strcmp("/1", cmdtext, true))
{
if(GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,-2792.7700,-10.3369,7.0391)) //
{
if(provfire == 0)
{
CreateObject(18690, 280.996704, 1876.698120, 14.849337, 90.2407954, -2.57831008, 1.71887339);
CreateObject(18690, -2794.0922851563, -12.043877601624, 9.0996828079224, 0, 0, 270.67565917969);
SendClientMessage(playerid, COLOR_RED, "action 1");
provfire = 1;
}
//The second action
else if(PlayerToPoint(3.0, playerid,-2794.9434,216.4308,7.1875)) //
{
if(provfire2 == 0)
{
CreateObject(18690, -2791.4255371094, 214.50006103516, 9.2241134643555, 0, 0, 0);
CreateObject(18690, -2791.2272949219, 214.4561920166, 12.408718109131, 0, 0, 0);
SendClientMessage(playerid, COLOR_RED, "action 2");
provfire2 = 1;
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "This house already burns");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Rise on a pickup");
}
return 1;
}
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OnPlayerConnect Action | luckie12 | Help Archive | 2 | 15/05/2010 10:45 AM |
| Button action | Aram555 | Help Archive | 0 | 02/02/2010 10:12 PM |
| Action Menu Help | CharlieScene | Help Archive | 0 | 26/10/2009 12:12 AM |
| Special action.. | lakierka | Help Archive | 7 | 16/10/2009 10:06 AM |
| [HELP] If players name = 'example' do this action | indy-greg | Help Archive | 5 | 05/09/2009 07:08 PM |