Add lock - 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)
+--- Thread: Add lock (
/showthread.php?tid=280427)
Add lock -
uprp - 01.09.2011
i need to add /lock.
STRCMP.. Please help out.
Re: Add lock -
IceCube! - 01.09.2011
Script request thread a little further up. Thank you.
Re: Add lock -
=WoR=G4M3Ov3r - 01.09.2011
I'll do it for you, if you remove my avatar.
Re: Add lock -
uprp - 01.09.2011
Lol i found this on avatars in ******, send me the code and ill remove it :P
Re: Add lock -
=WoR=G4M3Ov3r - 01.09.2011
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 ?
Re: Add lock -
uprp - 01.09.2011
Dude, i respected you, now respect me.
Re: Add lock -
=WoR=G4M3Ov3r - 01.09.2011
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext,"/lock",true))
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFFFFFFAA,"You have to be inside a vehicle.");
for(new i=0; i < MAX_PLAYERS; i++)
{
if(i == playerid) continue;
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i,0,1);
}
return 1;
}
return 0;
}
Re: Add lock -
uprp - 01.09.2011
Thanks, altough, I need one that it only lets owners lock their vehicles..
Re: Add lock -
Snipa - 01.09.2011
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..
Re: Add lock -
=WoR=G4M3Ov3r - 01.09.2011
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 ?