21.09.2011, 02:15
galera o problema й o seguinte quando eu uso algum comando de teleporte meu server desliga e o samp-server fecha automaticamente... ajudem pf
#include <a_samp>
#define AMARELO 0xF5DEB3AA
#pragma tabsize 0
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/policia", cmdtext, true)==0)
{
SetPlayerSkin(playerid, 283);
SetPlayerPos(playerid,1552.5591,-1675.4406,16.1953);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 26, 9999);
GivePlayerWeapon(playerid, 32, 9999);
SendClientMessage(playerid, AMARELO,"Agora vocк й policial, seu dever й capiturar traficantes!");
SendClientMessageToAll(AMARELO,"%s usou o comando /policia e virou policial");
return 1;
}
if (strcmp("/traficante", cmdtext, true)==0)
{
SetPlayerSkin(playerid, 103);
SetPlayerPos(playerid, 2495.2900,-1687.4009,13.5155);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 26, 9999);
GivePlayerWeapon(playerid, 32, 9999);
SendClientMessage(playerid, AMARELO,"Agora vocк й Traficante, seu dever й matar ou fujir da policia!");
SendClientMessageToAll(AMARELO,"%s usou o comando /traficante e virou traficante tome cuidado");
return 1;
}
if (strcmp("/normal", cmdtext, true)==0)
{
SetPlayerSkin(playerid, 271);
SetPlayerPos(playerid, 1242.7889, -1700.1168, 14.8672);
SetPlayerHealth(playerid, 100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 9999);
SendClientMessage(playerid, AMARELO,"Vocк voltou ao normal, pois tome cuidado hб traficantes a solta!");
SendClientMessageToAll(AMARELO,"%s Usou o comando /normal e voltou ao normal.");
return 1;
}
return 0;
}
#include <a_samp>
#define AMARELO 0xF5DEB3AA
#pragma tabsize 0
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/policia", cmdtext, true)==0)
{
SetPlayerSkin(playerid, 283);
SetPlayerPos(playerid,1552.5591,-1675.4406,16.1953);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 26, 9999);
GivePlayerWeapon(playerid, 32, 9999);
SendClientMessage(playerid, AMARELO,"Agora vocк й policial, seu dever й capiturar traficantes!");
SendClientMessageToAll(AMARELO,"usou o comando /policia e virou policial");
return 1;
}
if (strcmp("/traficante", cmdtext, true)==0)
{
SetPlayerSkin(playerid, 103);
SetPlayerPos(playerid, 2495.2900,-1687.4009,13.5155);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 26, 9999);
GivePlayerWeapon(playerid, 32, 9999);
SendClientMessage(playerid, AMARELO,"Agora vocк й Traficante, seu dever й matar ou fujir da policia!");
SendClientMessageToAll(AMARELO,"usou o comando /traficante e virou traficante tome cuidado");
return 1;
}
if (strcmp("/normal", cmdtext, true)==0)
{
SetPlayerSkin(playerid, 271);
SetPlayerPos(playerid, 1242.7889, -1700.1168, 14.8672);
SetPlayerHealth(playerid, 100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 9999);
SendClientMessage(playerid, AMARELO,"Vocк voltou ao normal, pois tome cuidado hб traficantes a solta!");
SendClientMessageToAll(AMARELO,"Usou o comando /normal e voltou ao normal.");
return 1;
}
return 0;
}
SendClientMessageToAll(AMARELO,"%s usou o comando /policia e virou policial");
new
sStr[45 + MAX_PLAYER_NAME],
Nome[MAX_PLAYER_NAME]
;
GetPlayerName(playerid, Nome, sizeof(Nome));
format(sStr, sizeof(sStr), "%s usou o comando /policia e virou policial", Nome); // Texto formatado '-'
SendClientMessageToAll(AMARELO, sStr);
#include <a_samp>
#define AMARELO 0xF5DEB3AA
#pragma tabsize 0
public OnPlayerCommandText(playerid, cmdtext[])
{
new Name[ MAX_PLAYER_NAME ], string[ 100 ];
GetPlayerName(playerid,Name,sizeof(Name));
if (strcmp("/policia", cmdtext, true)==0)
{
SetPlayerSkin(playerid, 283);
SetPlayerPos(playerid,1552.5591,-1675.4406,16.1953);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 26, 9999);
GivePlayerWeapon(playerid, 32, 9999);
SendClientMessage(playerid, AMARELO,"Agora vocк й policial, seu dever й capiturar traficantes!");
format(string, sizeof(string), "%s usou o comando /policia e virou policial", Name);
SendClientMessageToAll(-1, string);
return 1;
}
if (strcmp("/traficante", cmdtext, true)==0)
{
SetPlayerSkin(playerid, 103);
SetPlayerPos(playerid, 2495.2900,-1687.4009,13.5155);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 26, 9999);
GivePlayerWeapon(playerid, 32, 9999);
SendClientMessage(playerid, AMARELO,"Agora vocк й Traficante, seu dever й matar ou fujir da policia!");
format(string, sizeof(string), "%s usou o comando /traficante e virou traficante, cuidado", Name);
SendClientMessageToAll(-1, string);
return 1;
}
if (strcmp("/normal", cmdtext, true)==0)
{
SetPlayerSkin(playerid, 271);
SetPlayerPos(playerid, 1242.7889, -1700.1168, 14.8672);
SetPlayerHealth(playerid, 100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 9999);
SendClientMessage(playerid, AMARELO,"Vocк voltou ao normal, pois tome cuidado hб traficantes a solta!");
format(string, sizeof(string), "%s usou o comando /normal e voltou ao normal.", Name);
SendClientMessageToAll(-1, string);
return 1;
}
return 0;
}