PDA

View Full Version : [Help] Respawn Menu


Amine Belokda
01-07-2017, 14:14
Hello Guys :)
I Want Get Need Help In This Plugin

public ReviveMenu(id)
{
new RevivePlayer = menu_create ("\r[Micro#Gamers] \wRespawn Menu", "HandleRevive")

new num, players[32], tempid, szTempID [10], tempname [32]
get_players (players, num, "cb")

for (new i = 0; i < num; i++)
{
tempid = players [ i ]

get_user_name (tempid, tempname, 31)
num_to_str (tempid, szTempID, 9)
menu_additem (RevivePlayer, tempname, szTempID, 0)
}

menu_display (id, RevivePlayer)
return PLUGIN_HANDLED
}
public HandleRevive(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}

new data[6], name[64]
new access, callback

menu_item_getinfo (menu, item, access, data, 5, name, 63, callback)
new tempid = str_to_num (data)

get_user_name(id, szName, 32)
get_user_name(tempid, szPlayerName, 32)

ExecuteHamB(Ham_CS_RoundRespawn, tempid)

ColorChat(0, RED, "^4[M#G] ^1Admin ^4%s ^1Respawn Player ^4%s ^1!",szName, szPlayerName)
ReviveMenu(id)

return PLUGIN_CONTINUE
}

In This Respawn Menu I Want Show Your Name( Only ) (YourSelf)
Help And thanks

Amine Belokda
01-07-2017, 17:02
Show Your Name ( To Respaw Yourself Only )

OciXCrom
01-07-2017, 17:20
My name? Which name?! Is it so hard to remove 2 symbols from the message?

ColorChat(0,*RED,*"^4[M#G]*^1Admin*^4%s*^1Respawn*Player*^4%s**^1!",szName,*szPlayerName)

"want get need help" ftw.
Stop Writing Like You Were Torn Out From An Early Verson Of Google Translate. Only the FIRST word starts with a capital letter. People these days...

Amine Belokda
01-08-2017, 05:23
My name? Which name?! Is it so hard to remove 2 symbols from the message?

ColorChat(0,*RED,*"^4[M#G]*^1Admin*^4%s*^1Respawn*Player*^4%s**^1!",szName,*szPlayerName)

"want get need help" ftw.
Stop Writing Like You Were Torn Out From An Early Verson Of Google Translate. Only the FIRST word starts with a capital letter. People these days...

Sorry Help Me Oke
Fix Plugin Ok How become the Plugin see his name only in this the Plugin

OciXCrom
01-08-2017, 10:14
Which name???????????? ADMIN OR PLAYER???????

Amine Belokda
01-08-2017, 12:44
Which name???????????? ADMIN OR PLAYER???????

Name Admin (Only)

shehzad1234
01-08-2017, 13:08
This??

ColorChat(0, RED, "^4[M#G] ^1Admin ^4%s ^1Respawn Player^1!",szName)

EFFx
01-08-2017, 17:44
Dude, you need just to remove one string, We now know that you don't know nothing of AMXX, but we shouldn't do ALL LITTLE THING WHAT YOU WANT, you need to learn a bit.

Just remove one F*CKING string, LOL. We don't started knowing all the things of amxx, we learned what we know, do it you as well.

And you can use


menu_display(id,menu)


Instead of


ReviveMenu(id)

Ah, I forgot, you don't know, here's


public HandleRevive(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}

new data[6], name[64]
new access, callback

menu_item_getinfo (menu, item, access, data, 5, name, 63, callback)
new tempid = str_to_num (data)

get_user_name(id, szName, 32)
get_user_name(tempid, szPlayerName, 32)

ExecuteHamB(Ham_CS_RoundRespawn, tempid)

ColorChat(0, RED, "^4[M#G] ^1Admin ^4%s ^1Respawn Player ^4%s ^1!",szName, szPlayerName)
menu_display(id, menu)

return PLUGIN_CONTINUE
}

OciXCrom
01-08-2017, 19:23
But he want get need help. :(

Amine Belokda
01-09-2017, 07:40
But he want get need help. :(

Oh Sorry for ( My Bad English -_- )

Amine Belokda
01-09-2017, 16:22
This??

ColorChat(0, RED, "^4[M#G] ^1Admin ^4%s ^1Respawn Player^1!",szName)

-_- Noob -_-

OciXCrom
01-09-2017, 16:42
It's exactly what you said you want, you lowlife. Don't use the internet if you can't communicate properly.

TanKerr
02-07-2017, 16:44
I Undersatnd he need to respawn himself without Respawn Others Players
you can use this command in a menu or a clcmd
ExecuteHamB ( Ham_CS_RoundRespawn , id )