Add lock
#1

i need to add /lock.

STRCMP.. Please help out.
Reply
#2

Script request thread a little further up. Thank you.
Reply
#3

I'll do it for you, if you remove my avatar.
Reply
#4

Lol i found this on avatars in ******, send me the code and ill remove it :P
Reply
#5

Quote:
Originally Posted by uprp
Посмотреть сообщение
Lol i found this on avatars in ******, send me the code and ill remove it :P
Oh ?, you're bettin on it ?, then i hope no one even helps you, serves you right trying to be a wannabe, and weird, how'd you get it from ****** with a 80x80 gif ?
Reply
#6

Dude, i respected you, now respect me.
Reply
#7

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(!
strcmp(cmdtext,"/lock",true)) 
    {
        if(!
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFFFFFFAA,"You have to be inside a vehicle.");
        for(new 
i=0MAX_PLAYERSi++)
        {
            if(
== playerid) continue;
            
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i,0,1);
        }
        return 
1;
    }
    return 
0;

Reply
#8

Thanks, altough, I need one that it only lets owners lock their vehicles..
Reply
#9

OnVehicleStreamIn:

https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer

EDIT: Oops, was too slow. And the dude, you need to know how to do some stuff yourself..
Reply
#10

Quote:
Originally Posted by uprp
Посмотреть сообщение
Thanks, altough, I need one that it only lets owners lock their vehicles..
What's your pInfo for the Vehicle owner ?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)