Help me please -
Nicks - 24.04.2012
i have Bug in my server when i do /goto id 1 i go to id 2
please some one i have Id Bugg how to fix it help
Re: Help me please -
WLSF - 24.04.2012
Show us ur command code...
Re: Help me please -
Nicks - 24.04.2012
this and there is more
}
CMD:givemoney(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 4)
{
new string[128], giveplayerid, money;
if(sscanf(params, "ud", giveplayerid, money)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /givemoney [player] [money]");
if(IsPlayerConnected(giveplayerid))
{
GivePlayerCash(giveplayerid, money);
format(string, sizeof(string), "You have given %s $%d !",GetPlayerNameEx(giveplayerid),money);
SendClientMessageEx(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "%s has given %s $%d (/givemoney)", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid),money);
Log("logs/stats.log", string);
}
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
}
return 1;
}
CMD:getpt(playerid, params[])
{
if(PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pMember] == 4)
{
new string[128], giveplayerid;
if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /getpt(patient) [player]");
if(IsPlayerConnected(giveplayerid))
{
if (giveplayerid == playerid)
{
Re: Help me please -
Nicks - 24.04.2012
}
CMD:gotoid(playerid, params[])
{
new giveplayerid;
if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /gotoid [player]");
new Float

locx,Float

locy,Float

locz;
if (IsPlayerConnected(giveplayerid))
{
if (PlayerInfo[playerid][pAdmin] >= 2)
{
if(GetPlayerState(giveplayerid) == PLAYER_STATE_SPECTATING)
{
SendClientMessageEx(playerid, COLOR_GRAD2, "That player is spectating someone.");
return 1;
}
if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
{
SendClientMessageEx(playerid, COLOR_GRAD2, "You can not do this while spectating.");
return 1;
}
GetPlayerPos(giveplayerid, plocx, plocy, plocz);
SetPlayerVirtualWorld(playerid, PlayerInfo[giveplayerid][pVW]);
Streamer_UpdateEx(playerid, plocx, plocy, plocz);
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
fVehSpeed[playerid] = 0.0;
}
else
{
SetPlayerPos(playerid,plocx,plocy+2, plocz);
SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));
}
SendClientMessageEx(playerid, COLOR_GRAD1, " You have been teleported!");
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
}
}
else SendClientMessageEx(playerid, COLOR_GRAD1, "Invalid player specified.");
return 1;
}
CMD:gethere(playerid, params[])
{
new giveplayerid;
if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /gethere [player]");
new Float

locx,Float

locy,Float

locz;
if (IsPlayerConnected(giveplayerid))
{
if(PlayerInfo[giveplayerid][pAdmin] >= PlayerInfo[playerid][pAdmin])
{
SendClientMessageEx(playerid, COLOR_WHITE, "You can't perform this action on an equal or higher level administrator.");
return 1;
}
if (PlayerInfo[playerid][pAdmin] >= 2)
{
if(GetPlayerState(giveplayerid) == PLAYER_STATE_SPECTATING)
{
SendClientMessageEx(playerid, COLOR_GRAD2, "That player is spectating someone.");
return 1;
}
GetPlayerPos(playerid, plocx, plocy, plocz);
Streamer_UpdateEx(giveplayerid, plocx, plocy, plocz);
SetPVarInt(playerid, "BeingTeleported", 1);
SetPlayerVirtualWorld(giveplayerid, PlayerInfo[playerid][pVW]);
PlayerInfo[giveplayerid][pLocal] = PlayerInfo[playerid][pLocal];
if (GetPlayerState(giveplayerid) == 2)
{
TelePos[giveplayerid][0] = 0.0;
fVehSpeed[giveplayerid] = 0.0;
TelePos[giveplayerid][1] = 0.0;
new tmpcar = GetPlayerVehicleID(giveplayerid);
SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
LinkVehicleToInterior(GetPlayerVehicleID(giveplaye rid), GetPlayerInterior(playerid));
SetPlayerInterior(giveplayerid, GetPlayerInterior(playerid));
SetVehicleVirtualWorld(GetPlayerVehicleID(giveplay erid), GetPlayerVirtualWorld(playerid));
SetPlayerVirtualWorld(giveplayerid, GetPlayerVirtualWorld(playerid));
}
else
{
SetPlayerPos(giveplayerid,plocx,plocy+2, plocz);
SetPlayerInterior(giveplayerid, GetPlayerInterior(playerid));
SetPlayerVirtualWorld(giveplayerid, GetPlayerVirtualWorld(playerid));
}
SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
}
}
else SendClientMessageEx(playerid, COLOR_GRAD1, "Invalid player specified.");
return 1;
}
Respuesta: Help me please -
OPremium - 24.04.2012
Update sscanf (
https://sampforum.blast.hk/showthread.php?tid=120356) and
recompile your scripts!
PS: Use [pawn] (CODE) [/pawn] next time