Help , with command
#4

PHP код:
//zcmd
CMD:telep(playeridparams[])
{
    
ShowPlayerDialog(playerid1337DIALOG_STYLE_PASSWORD"Enter password""Enter password""Enter""Cancel");
    return 
1;
}
//OnDialogResponse
case 1337:
{
    if(!
response) return 1;
    if(
strlen(inputtext) && !strcmp(inputtext"YOURPASSWORD"))
    {
        
SetPlayerPos(playeridXYZ); //coords
        
SendClientMessage(playerid, -1"You are teleported");
    }
    else 
SendClientMessage(playerid, -1"Wrong password");

Reply


Messages In This Thread
Help , with command - by NitroZeth - 18.12.2017, 15:27
Re: Help , with command - by Sting. - 18.12.2017, 15:30
Re: Help , with command - by NitroZeth - 18.12.2017, 15:41
Re: Help , with command - by Argument - 18.12.2017, 17:21

Forum Jump:


Users browsing this thread: 2 Guest(s)