View Single Post
Old 02/08/2020, 12:19 PM   #1
Rannie
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
Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(PRESSED(KEY_YES))
    {
        // Code here
    }
	return 1;
}
And this is the code in CGRP gm
Code:
if(strcmp(cmd, "/enter", true) == 0)
This is the whole code for /enter
https://pastebin.com/xHk7ukJj
Rannie is offline   Reply With Quote