if (strcmp("/tap", cmdtext, true, 10) == 0)
{
if(if(!IsPlayerAdmin(playerid))
{
new Float: x,
Float: y,
Float: z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z+10);
}
return 1;
}
if (strcmp("/tap", cmdtext, true, 10) == 0) { new Float: x, Float: y, Float: z; GetPlayerPos(playerid, x, y, z); SetPlayerPos(playerid, x, y + 30, z); return 1; } |
if (strcmp("/tap", cmdtext, true, 10) == 0) { if(if(!IsPlayerAdmin(playerid)) { new Float: x, Float: y, Float: z; GetPlayerPos(playerid, x, y, z); SetPlayerPos(playerid, x, y, z+10); } return 1; } |
if (strcmp("/tap", cmdtext, true, 10) == 0)
{
if (!IsPlayerAdmin(playerid))
{
new Float: x,
Float: y,
Float: z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z + 10);
}
return 1;
}
if (strcmp("/tap", cmdtext, true, 10) == 0) // COMANDO
{
if (!IsPlayerAdmin(playerid)) // VERIFICA SE ELE Й ADMIN RCON se nao for nao vai poder usar o comando
{
new Float: x, // VARIAVEIS
Float: y,
Float: z;
GetPlayerPos(playerid, x, y, z); // https://sampwiki.blast.hk/wiki/Function:GetPlayerPos
SetPlayerPos(playerid, x, y, z + 10); // https://sampwiki.blast.hk/wiki/SetPlayerPos // vai setar e na coordenada "z" vai dar mais 10 da possisгo "z" sacou ?
}
return 1;
}
#include <a_samp>
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/tapateste", cmdtext, true, 10) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "USE: /Rcon Login Senha para usar esse comando!");
{
new Float: x,
Float: y,
Float: z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z + 10);
}
return 1;
}
return 0;
}