- 0
Comanda remote control
-
Similar Content
-
- 28 replies
- 1,802 views
-
- 4 replies
- 185 views
-
- 1 reply
- 137 views
-
Comanda /spec
By VAurel,
- 4 answers
- 319 views
-
- 4 answers
- 664 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
TheGodfather
Salut, ma puteti ajuta cu o comanda prin care ceea ce scriu eu sa se aplice altui jucatori? De exemplu, /remotecommand <remote player> <command text>, /remotecontrol 206 /engine, ii opreste/porneste motorul playerului cu id 206, /remotecontrol 206 /eject 50, playerul cu id 206 ii da eject din masina playerului cu id 50.
Am incercat asta dar nu merge, am incercat sa apelez si OnPlayerCommandPerformed dar tot nu merge.
YCMD:remotecontrol(playerid, params[], help) {
if(aspam[playerid] > 0) return SCMEx(playerid, COLOR_LIGHTRED, "[Command Anti-Spam] {FFFFFF}Asteapta %d secunde.", aspam[playerid]);
new id, text[30];
if(sscanf(params, "is[30]", id, text)) return SCM(playerid, COLOR_GREY, "Syntax: {FFFFFF}/remotecontrol <playerid> <command>");
OnPlayerCommandReceived(id, text);
return 1;
}
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.