- 0
Comanda remote control
-
Similar Content
-
- 2 answers
- 635 views
-
Am o problema cu un battlepass,de ce nu merge comanda /misiuni cand o scriu,tin sa precizez ca script-ul mi l-a facut chatgpt
By cbnmihaita,
- 2 answers
- 376 views
-
- 3 replies
- 540 views
-
Comanda /spec
By VAurel,
- 4 answers
- 722 views
-
- 3 replies
- 626 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;
}
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.