SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 20/01/2011, 11:39 PM   #1
Roma555
Big Clucker
 
Join Date: Oct 2009
Posts: 69
Reputation: 0
Question The second action doesn't work

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;
    }
Roma555 is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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 11:12 PM
Action Menu Help CharlieScene Help Archive 0 26/10/2009 01: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


All times are GMT. The time now is 06:54 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.