11.02.2012, 17:36
Ok this is the problem... i've tried anything but i can't figure out how to change some commands from zcmd into strcmp... my whole gamemode is in strcmp and it would be a waste of time to change everything into zcmd... For example i want to change this command but not stop using its sscanf becouse i don't know how to write this command in strcmp:
can anyone give me a pattern or something how to change it or a convertor or i don't know ?
pawn Код:
CMD:xgoto(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1338 && IsPlayerAdmin(playerid))
{
new Float:x, Float:y, Float:z;
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Use: \"/xgoto <X Float> <Y Float> <Z Float>\"");
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "You've set your coord to %f, %f, %f", x, y, z);
SendClientMessage(playerid, 0xBBBBBBAA, string);
}
}
return 1;
}