Bun deci, am inceput sa scriptez, pe zi ce trece vreau sa invat din ce in ce mai mult, acum de exemplu am o idee in cap, am tot auzit ca zcmd sau ycmd sunt cele mai rapide procesoare de comenzi, mai elimina lagul bla bla, eu comenzile din gm le am de genul:
if(strcmp(cmd, "/gotols", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2) { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { SetPlayerPos(playerid, 1529.6,-1691.2,13.3); } SendClientMessage(playerid, COLOR_GREY, "You have been teleported!"); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; }
adica cu strcmp, ce ar trebuie sa schimb ca sa le transform in ycmd? prima parte adica in loc de:
if(strcmp(cmd, "/gotols", true) == 0)
sa pun:
YCMD:gotols(playerid, params[]);? +1 celui care ma ajuta.
Question
Daedric-Fox
Bun deci, am inceput sa scriptez, pe zi ce trece vreau sa invat din ce in ce mai mult, acum de exemplu am o idee in cap, am tot auzit ca zcmd sau ycmd sunt cele mai rapide procesoare de comenzi, mai elimina lagul bla bla, eu comenzile din gm le am de genul:
if(strcmp(cmd, "/gotols", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
}
SendClientMessage(playerid, COLOR_GREY, "You have been teleported!");
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
adica cu strcmp, ce ar trebuie sa schimb ca sa le transform in ycmd? prima parte adica in loc de:
if(strcmp(cmd, "/gotols", true) == 0)
sa pun:
YCMD:gotols(playerid, params[]);? +1 celui care ma ajuta.
**********************************
Servicii Scripting de calitate:
*********************************
Future Project: ExpertGame
*********************************
2 answers to this question
Recommended Posts