SA-MP Forums

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

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 02/08/2020, 12:19 PM   #1
Little Clucker
Join Date: Jul 2020
Posts: 10
Reputation: 0
Default Pressing Y to Enter

Hello.Im just new in scripting.I want the (/enter)(/exit) in Y key.I dont know what to add in "//code here"
Can someone help me?This is my strcmp code.I found codes in other threads but its in zcmd

This is the code that i found
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
        // Code here
	return 1;
And this is the code in CGRP gm
if(strcmp(cmd, "/enter", true) == 0)
This is the whole code for /enter
Rannie is offline   Reply With Quote

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
Enter the interior by pressing ENTER k2bi Scripting Help 1 21/01/2018 06:35 AM
HOW TO ENTER BUILDING WITH PRESSING KEY ? [HELP] jetpas Scripting Help 1 09/06/2016 03:18 AM
Pressing a key to enter/exit building Lucky™ Scripting Help 8 05/02/2015 01:07 PM
how to enter the building or door by pressing the enter key kurniarocki Scripting Help 6 08/04/2014 05:43 AM

All times are GMT. The time now is 12:45 PM.

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