22.09.2012, 00:46
A janela do CMD abre, e fecha bem rбpido, nem dб para ler, e meu gm n tem erros quando copilo.
Aqui estб meu Gm iniciante :
Por que nгo abre ?
OBS : Gm й Pequeno, por que comecei do zero, esse que й o meu novo projeto. Battlefield. e tambйm eu sou iniciante em pawn, e nгo gosto de fazer download de GMs Prontos na Internet, acho isso mф coisa feia.
Esse Gm eu boto o nome de MEU pq eu to criando ele do nada. xD
Aqui estб meu Gm iniciante :
pawn Код:
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
//------------------------------------------------------------------------------
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Feito Por Lucas Emmanuel");
print("--------------------------------------\n");
return 1;
}
#endif
public OnGameModeInit()
{
SetGameModeText("Battlefield 3");
//------------------------------------------------------------------------------
AddPlayerClass(287, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
//------------------------------------------------------------------------------
return 1;
}
//------------------------------------------------------------------------------
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
//------------------------------------------------------------------------------
public OnPlayerConnect(playerid) // Mensбgem Quando o Player Entra no Servidor
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"%s Entrou No Servidor",pName);
SendClientMessageToAll(0xFFFFFFAA,string);
return 1;
}
//------------------------------------------------------------------------------
public OnPlayerDisconnect(playerid, reason) // Mensбgem Quando o Player Sai no Servidor
{
new string[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(string,sizeof string,"%s Deixou o Servidor. (Timed out)",name);
case 1: format(string,sizeof string,"%s Deixou o Servidor. (Kicked/Banned)",name);
}
SendClientMessageToAll(0xFFFFFFAA,string);
return 1;
}
//------------------------------------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
return 1;
}
return 0;
}
//------------------------------------------------------------------------------
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
Por que nгo abre ?
OBS : Gm й Pequeno, por que comecei do zero, esse que й o meu novo projeto. Battlefield. e tambйm eu sou iniciante em pawn, e nгo gosto de fazer download de GMs Prontos na Internet, acho isso mф coisa feia.
Esse Gm eu boto o nome de MEU pq eu to criando ele do nada. xD