liftZz 0 Odesláno: 16. Únor, 2013 Share Odesláno: 16. Únor, 2013 Zdravím když mam například příkaz dcmd_heal(playerid, params[]) { new id; if (!strlen(params)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/heal \""); id = strval(params); if (!IsPlayerConnected(id))SendClientMessage(playerid, 0xFF0000AA, "Player not found"); SetPlayerHealth(id, 100.0); SendClientMessage(id, 0x00FF00AA, "You have been healed"); SendClientMessage(playerid, 0x00FF00AA, "Player healed"); return 1; } a chtěl bych to jen přes klávesu l.alt nevíte jak na to ? Jestli mam něco přidat do OnPlayerKeyStateChange ? Link to comment Share on other sites More sharing options...
0 eLko 5 Odesláno: 16. Únor, 2013 Share Odesláno: 16. Únor, 2013 public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (PRESSED(KEY_WALK)) { SetPlayerHealth(id, 100.0); SCM(playerid, farba, "HP obnovené"); } return 1; } .. neviem či to bde fonguvať . . ale malo by Link to comment Share on other sites More sharing options...
0 liftZz 0 Odesláno: 16. Únor, 2013 Author Share Odesláno: 16. Únor, 2013 public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (PRESSED(KEY_WALK)) { SetPlayerHealth(id, 100.0); SCM(playerid, farba, "HP obnovené"); } return 1; } .. neviem či to bde fonguvať . . ale malo by Díky později vyzkouším Link to comment Share on other sites More sharing options...
Dotaz
liftZz 0
Zdravím když mam například příkaz
a chtěl bych to jen přes klávesu l.alt nevíte jak na to ? Jestli mam něco přidat do OnPlayerKeyStateChange ?
Link to comment
Share on other sites
2 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now