IosifR Posted January 22, 2021 Report Share Posted January 22, 2021 Cum fac comanda freeze și unfreeze? Link to comment Share on other sites More sharing options...
danuts Posted January 22, 2021 Report Share Posted January 22, 2021 (edited) Pentru a crea comenzile dorite, te folosești de callback-ul `TogglePlayerControllable(playerid, toggle)`. Parametri: - playerid (ID-ul jucătorului căruia îi setezi controlabilitatea). - toggle (0 - pentru a-i face incontrolabili / 1 - pentru a-i face controlabili). YCMD:freeze(playerid, params[], help) { new ID; if(sscanf(params, "ui", ID)) return SendClientMessage(playerid, -1, "Syntax: /freeze <playerid / part of name>"); TogglePlayerControllable(ID, 0); return 1; } YCMD:unfreeze(playerid, params[], help) { new ID; if(sscanf(params, "ui", ID)) return SendClientMessage(playerid, -1, "Syntax: /unfreeze <playerid / part of name>"); TogglePlayerControllable(ID, 1); return 1; } Eu ți-am făcut doar bazele comenzilor, în rest adaugi tu (verificări, restricții etc). Edited January 22, 2021 by matei_ Link to comment Share on other sites More sharing options...
IosifR Posted January 22, 2021 Author Report Share Posted January 22, 2021 Mulțumesc. Link to comment Share on other sites More sharing options...
IosifR Posted January 22, 2021 Author Report Share Posted January 22, 2021 Mă poți ajuta sa fac și comannda Spawn car? Daca poți să îmi explici... Link to comment Share on other sites More sharing options...
Mister Posted January 22, 2021 Report Share Posted January 22, 2021 Nu se cer scripturi, deja ai cerut 2 chestii. __ ____ __ / |/ (_)____/ /____ _____ / /|_/ / / ___/ __/ _ \/ ___/ / / / / (__ ) /_/ __/ / /_/ /_/_/____/\__/\___/_/ SERVICII SCRIPTING DE CALITATE Pagina Scripting pawn Link to comment Share on other sites More sharing options...
Recommended Posts