12.12.2012, 20:57
Bom, eu passei meu gamemode para zcmd, e alguns comandos pararam de funcionar.
Ex: /sf
Comando:
Esse e outros comandos pararam de funcionar, ae fica Unknow Command, oque pode ser ?
Nota: Alguns comandos funcionam.
Por exemplo esse:
Includes que uso no meu gamemode:
Ex: /sf
Comando:
PHP код:
CMD:SF(playerid, params[])
{
if(BlockCMD[playerid] == true) return SendClientMessage(playerid, -1, "{FF0000}[ERRO]: {FFFFFF} Vocк estб em um evento DM, use /Sairdm");
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
GameTextForPlayer(playerid, "~r~bem-vindo a~n~~y~san fierro", 2000, 3);
SetVehiclePos(VehicleID,-1515.3585,996.7682,7.1853);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 1.1080);
new pname[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s foi para o centro de San Fierro: {FFFF00}( /SF )", pname);
SendClientMessageToAll(0x00FF00FF, string);
SetPlayerInterior(playerid,0);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
}
else{
new pname[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
GameTextForPlayer(playerid, "~r~bem-vindo a~n~~y~san fierro", 2000, 3);
format(string, sizeof(string), "%s foi para o centro de San Fierro: {FFFF00}( /SF )", pname);
SendClientMessageToAll(0x00FFFFFF, string);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-1471.7948,833.7871,7.1875);
SetPlayerFacingAngle(playerid,190.9207);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
}
return 1;
}
Nota: Alguns comandos funcionam.
Por exemplo esse:
PHP код:
CMD:drift(playerid, params[]) {
if(BlockCMD[playerid] == true) return SendClientMessage(playerid, -1, "{FF0000}[ERRO]: {FFFFFF} Vocк estб em um evento DM, use /Sairdm");
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,-300.5287,1526.9093,75.3594);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 1.1080);
new pname[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s foi para o {FFFFFF}( /DRIFT )", pname);
SendClientMessageToAll(0xFF00FFFF, string);
SetPlayerInterior(playerid,0);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
}
else{
new pname[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s foi para o {FFFFFF}( /DRIFT )", pname);
SendClientMessageToAll(0x00FF00FF, string);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-300.5287,1526.9093,75.3594);
SetPlayerFacingAngle(playerid,190.9207);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
}
return 1;
}
PHP код:
#include <a_samp>
#include <streamer>
#include <core>
#include <float>
#include <cpstream>
#include <zcmd>