17.02.2014, 21:13
ajuda a faзe um x1run de 2 pessoal eu ja tentei e nao dar
PHP код:
if(strcmp(cmdtext, "/x1run", true) == 0) {
static
Float:myHealth,
Float:myArmour;
GetPlayerHealth(playerid, myHealth);
GetPlayerArmour(playerid, myArmour);
if ( myHealth < 30 && myArmour == 0 )
return SendClientMessage(playerid, -1, "Sua HP esta muito baixa e й por isso que vocк nгo pode usar este comando!");
if (GetPVarInt(playerid, "noX1") == 1 )
return SendClientMessage(playerid, -1, "{FF140F}[ERRO]: {FFFFFF}Voзe ja esta em uma arena dm para sair use: /sairdm");
static i, e, cont;
for ( i = 0, e = GetMaxPlayers(); i < e; ++i ) {
if ( IsPlayerConnected(i) && GetPVarInt(playerid, "noX1") != 0 )
cont++;}
if ( cont >= 2 )
return SendClientMessage(playerid, -1, "O X1 jб possui 2 participantes!");
SetPlayerPos(playerid, 2470.997, -1677.914, 13.6328);
SetPlayerVirtualWorld(playerid, 1);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s foi para o {FF00FF}X1 Running {FF0000}( /x1run )", pname);
SendClientMessageToAll(COLOR_YELLOW, string);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,16);
SetPlayerPos(playerid, -1416.3827, 1246.9246, 1039.8741);
SetPlayerFacingAngle(playerid, 273.7604);
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid, 22, 9999999999);
GivePlayerWeapon(playerid, 28, 9999999999);
GivePlayerWeapon(playerid, 26, 9999999999);
SetPVarInt(playerid, "noX1", 1);
return 1;}