if (!strcmp(cmdtext, "/voem", true)) { static Interator; Interator = GetMaxPlayers(); for (; Interator > -1; --Interator) { if (IsPlayerConnected(Interator)) { SetPlayerHealth(Interator, 35); new Float: P_Pos[3]; CreateExplosion(P_Pos[0], P_Pos[1], P_Pos[2], 7, 10.0); new Float:X,Float:Y,Float:Z; CreateExplosion(X, Y, Z, 7, 10); CreateExplosion(X, Y, Z+3, 7, 10); CreateExplosion(X, Y, Z+6, 7, 10); CreateExplosion(X, Y, Z+9, 7, 10); CreateExplosion(X, Y, Z+12, 7, 10); CreateExplosion(X, Y, Z+15, 7, 10); CreateExplosion(X, Y, Z+18, 7, 10); CreateExplosion(X, Y, Z+21, 7, 10); CreateExplosion(X, Y+7, Z+21, 7, 10); CreateExplosion(X, Y-7, Z+21, 7, 10); CreateExplosion(X+7, Y, Z+21, 7, 10); CreateExplosion(X-7, Y, Z+21, 7, 10); CreateExplosion(X, Y, Z+24, 7, 10); CreateExplosion(X, Y+10, Z+24, 7, 10); CreateExplosion(X, Y-10, Z+24, 7, 10); CreateExplosion(X+10, Y, Z+24, 7, 10); CreateExplosion(X-10, Y, Z+24, 7, 10); CreateExplosion(X, Y, Z+27, 7, 10); CreateExplosion(X, Y+7, Z+27, 7, 10); CreateExplosion(X, Y-7, Z+27, 7, 10); CreateExplosion(X+7, Y, Z+27, 7, 10); CreateExplosion(X-7, Y, Z+27, 7, 10); CreateExplosion(X, Y, Z+30, 7, 10); CreateExplosion(X, Y+3, Z+30, 7, 10); CreateExplosion(X, Y-3, Z+30, 7, 10); CreateExplosion(X+3, Y, Z+30, 7, 10); CreateExplosion(X-3, Y, Z+30, 7, 10); new Float: x, Float: y, Float: z; GetPlayerPos(playerid, x, y, z); SetPlayerPos(playerid, x, y, z + 100); } } SendClientMessageToAll(-1, "Conheзa A dor=='!! Voemmm!! "); SetPlayerHealth(playerid, 65.0); return true; }
if(!strcmp(cmdtext, "/voem", true))
{
for(new i; i<=GetMaxPlayers(); i++)
{
new Float: x, Float: y, Float: z;
GetPlayerPos(i, x, y, z);
SetPlayerPos(i, x, y, z + 100);
break;
}
SendClientMessageToAll(-1, "Conheзa A dor=='!! Voemmm!!");
return true;
}
if(strcmp(cmdtext, "/voem", true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new Float:pX, Float:pY, Float:pZ;
GetPlayerPos(i, pX, pY, pZ);
SetPlayerPos(i, pX, pY+20, pZ+40);
SendClientMessageToAll(-1, "Conheзa A dor=='!! Voemmm!! ");
}
return 0;
}
Tente '-'
PHP код:
|
pawn Код:
|
if(strcmp(cmdtext,"/voem") ? (true) : (false)){
for(new i; i<MAX_PLAYERS; i++){
new Float: x,
Float: y,
Float: z;
GetPlayerPos(i, x, y, z);
SetPlayerPos(i, x, y, z + 100);
break;
}
return 1;
}
// Topo
#define Distancia 50 // 50 = Distancia
// CommandText
if (strcmp("/voem", cmdtext, true, 10) == 0) {
for(new r = 0; r<MAX_PLAYERS; r++) {
if(IsPlayerConnected(r)) {
new Float:rPos[3];
GetPlayerPos(r, rPos[0], rPos[1], rPos[2]);
SetPlayerPos(r, rPos[0], rPos[1]+Distancia, rPos[2]);
}
}
return SendClientMessageToAll(-1, " Voem seus cornos. ");
}
Tente '-'
PHP код:
|
if(strcmp(cmdtext, "/voem", false) == 0)
{
for(new i = 0; i <= GetMaxPlayers(); ++i)
{
new Float: playerX, Float: playerY, Float: playerZ;
GetPlayerPos(i, playerX, playerY, playerZ);
SetPlayerPos(i, playerX, playerY, playerZ + 200);
GameTextForPlayer(i, "~r~morram!", 3000, 1);
}
return 0;
}