SA-MP Forums Archive
[help] how to add to gm - 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: [help] how to add to gm (/showthread.php?tid=185125)



[help] how to add to gm - Tom1412 - 23.10.2010

how do i add a bit to the gm
i got a bit for /pay to open a object but i dont know how to add it its not set as a fs but help
THIS IS A PWANO SCRIPT PLEASE HELP
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/pay"cmdtexttrue10) == 0)
    {
        if(
IsPlayerInRangeOfPoint(playerid,x,y,z))return SendClientMessage(playerid,PUT THE COLOR HERE,"You are too far from the gate to pay");
        if(
GetPlayerMoney(playerid, < 500))return SendClientMessage(playerid,PUT THE COLOR HERE,"You do not have enough money");
        if(
GetPlayerMoney(playerid, > 500))return SendClientMessage(playerid,PUT THE COLOR HERE,"You have just paid and the gate is open");
        {
        
MoveObject(objectid,x,y,z,2.0)
        }
        return 
1;
     }
     return 
0;