Auto Gate
#7

Quote:
Originally Posted by Lokii
Посмотреть сообщение
PHP код:
#include <a_samp>
#include <AutoMove> //make sure that you have YSI
#define FILTERSCRIPT
public OnFilterScriptInit()
{
    
CreateAutoObject(09712127.216551913.2699013.356340.000000.000004.02577, -1, -1100.015.02116.996091912.2789313.356340.000000.000004.025773);
    
//usage CreateAutoObject(id, modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, Float:stream_distance, Float:move_distance, Float:tox, Float:toy, Float:toz, Float:torx, Float:tory, Float:torz, Float:move_speed);
    
return 1;
}
public 
OnAutoObjectOpen(playeridauto_objectid)
{
    new 
name[24];
    switch(
auto_objectid)
    {
        case 
0//checking if the auto object id is 0
        
{
            
GetPlayerName(playeridnamesizeof(name)); //getting player name
            
if(strcmp(name"seyed"true) != 0) return CloseAutoObject(0); //if doesnt match close gate if match gates will open
        
}
    }
    return 
1;

So Tnx
Reply


Messages In This Thread
Auto Gate - by Seyed - 01.10.2017, 13:45
Re: Auto Gate - by Mister0 - 01.10.2017, 13:59
Re: Auto Gate - by Lokii - 01.10.2017, 14:07
Re: Auto Gate - by Seyed - 01.10.2017, 14:55
Re: Auto Gate - by Seyed - 01.10.2017, 15:08
Re: Auto Gate - by Lokii - 01.10.2017, 15:20
Re: Auto Gate - by Seyed - 01.10.2017, 15:36

Forum Jump:


Users browsing this thread: 1 Guest(s)